projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Fix BT link status pin for real TBT hardware
[fw/altos]
/
src
/
ao_gps_test.c
diff --git
a/src/ao_gps_test.c
b/src/ao_gps_test.c
index 3692f0e53b0cc5865d76c76eaf8c21a2ab808e61..44efb50cf97be50c53a99945de74c674a591dd50 100644
(file)
--- a/
src/ao_gps_test.c
+++ b/
src/ao_gps_test.c
@@
-28,6
+28,7
@@
#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 {
uint8_t year;
struct ao_gps_data {
uint8_t year;
@@
-59,13
+60,14
@@
struct ao_gps_data {
struct ao_gps_sat_data {
uint8_t svid;
struct ao_gps_sat_data {
uint8_t svid;
- uint8_t state;
uint8_t c_n_1;
};
uint8_t c_n_1;
};
+#define AO_MAX_GPS_TRACKING 12
+
struct ao_gps_tracking_data {
uint8_t channels;
struct ao_gps_tracking_data {
uint8_t channels;
- struct ao_gps_sat_data sats[
12
];
+ struct ao_gps_sat_data sats[
AO_MAX_GPS_TRACKING
];
};
void
};
void
@@
-401,6
+403,8
@@
ao_serial_set_speed(uint8_t speed)
tcflush(fd, TCIFLUSH);
}
tcflush(fd, TCIFLUSH);
}
+#define ao_time() 0
+
#include "ao_gps_print.c"
#include "ao_gps_sirf.c"
#include "ao_gps_print.c"
#include "ao_gps_sirf.c"
@@
-435,9
+439,9
@@
ao_dump_state(void *wchan)
printf("\n");
printf ("\t");
for (i = 0; i < 12; i++)
printf("\n");
printf ("\t");
for (i = 0; i < 12; i++)
- printf (" %2d(%02
x
)",
+ printf (" %2d(%02
d
)",
ao_gps_tracking_data.sats[i].svid,
ao_gps_tracking_data.sats[i].svid,
- ao_gps_tracking_data.sats[i].
state
);
+ ao_gps_tracking_data.sats[i].
c_n_1
);
printf ("\n");
}
printf ("\n");
}