projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Ensure low-rate telem packets interleave with sensor telem packets
[fw/altos]
/
src
/
ao_gps_test.c
diff --git
a/src/ao_gps_test.c
b/src/ao_gps_test.c
index edb513047fda7aea4eeb8db808b4eb03df9ee473..93d7a9abc6ee5e3371cf72f33fda50d19dd9ad50 100644
(file)
--- a/
src/ao_gps_test.c
+++ b/
src/ao_gps_test.c
@@
-28,8
+28,9
@@
#define AO_GPS_VALID (1 << 4)
#define AO_GPS_RUNNING (1 << 5)
#define AO_GPS_DATE_VALID (1 << 6)
#define AO_GPS_VALID (1 << 4)
#define AO_GPS_RUNNING (1 << 5)
#define AO_GPS_DATE_VALID (1 << 6)
+#define AO_GPS_COURSE_VALID (1 << 7)
-struct ao_gps_
data
{
+struct ao_gps_
orig
{
uint8_t year;
uint8_t month;
uint8_t day;
uint8_t year;
uint8_t month;
uint8_t day;
@@
-57,18
+58,22
@@
struct ao_gps_data {
#define SIRF_SAT_ACQUISITION_FAILED (1 << 6)
#define SIRF_SAT_EPHEMERIS_AVAILABLE (1 << 7)
#define SIRF_SAT_ACQUISITION_FAILED (1 << 6)
#define SIRF_SAT_EPHEMERIS_AVAILABLE (1 << 7)
-struct ao_gps_sat_
data
{
+struct ao_gps_sat_
orig
{
uint8_t svid;
uint8_t c_n_1;
};
#define AO_MAX_GPS_TRACKING 12
uint8_t svid;
uint8_t c_n_1;
};
#define AO_MAX_GPS_TRACKING 12
-struct ao_gps_tracking_
data
{
+struct ao_gps_tracking_
orig
{
uint8_t channels;
uint8_t channels;
- struct ao_gps_sat_
data
sats[AO_MAX_GPS_TRACKING];
+ struct ao_gps_sat_
orig
sats[AO_MAX_GPS_TRACKING];
};
};
+#define ao_telemetry_location ao_gps_orig
+#define ao_telemetry_satellite ao_gps_tracking_orig
+#define ao_telemetry_satellite_info ao_gps_sat_orig
+
void
ao_mutex_get(uint8_t *mutex)
{
void
ao_mutex_get(uint8_t *mutex)
{