altos: add telebt-v0.0 Makefile
[fw/altos] / src / ao_gps_test.c
index fddfedfd075afe8ae70680803691f010b572aaf2..44efb50cf97be50c53a99945de74c674a591dd50 100644 (file)
@@ -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_COURSE_VALID    (1 << 7)
 
 struct ao_gps_data {
        uint8_t                 year;
@@ -62,9 +63,11 @@ struct ao_gps_sat_data {
        uint8_t         c_n_1;
 };
 
+#define AO_MAX_GPS_TRACKING    12
+
 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
@@ -400,6 +403,8 @@ ao_serial_set_speed(uint8_t speed)
        tcflush(fd, TCIFLUSH);
 }
 
+#define ao_time() 0
+
 #include "ao_gps_print.c"
 #include "ao_gps_sirf.c"