projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add top-level 'fat' target to aid building distribution files
[fw/altos]
/
src
/
ao_gps_test_skytraq.c
diff --git
a/src/ao_gps_test_skytraq.c
b/src/ao_gps_test_skytraq.c
index 510bc41916532aa3b53f4ec2037226af62c20f39..4010e09c9e8816db490feab7ab0c6f887ed793b1 100644
(file)
--- a/
src/ao_gps_test_skytraq.c
+++ b/
src/ao_gps_test_skytraq.c
@@
-27,8
+27,12
@@
#define AO_GPS_VALID (1 << 4)
#define AO_GPS_RUNNING (1 << 5)
#define AO_GPS_VALID (1 << 4)
#define AO_GPS_RUNNING (1 << 5)
+#define AO_GPS_DATE_VALID (1 << 6)
struct ao_gps_data {
struct ao_gps_data {
+ uint8_t year;
+ uint8_t month;
+ uint8_t day;
uint8_t hour;
uint8_t minute;
uint8_t second;
uint8_t hour;
uint8_t minute;
uint8_t second;
@@
-59,9
+63,11
@@
struct ao_gps_sat_data {
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
@@
-404,6
+410,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_skytraq.c"
#include "ao_gps_print.c"
#include "ao_gps_skytraq.c"