altos: Simplify tracker logic, removing boost detect
[fw/altos] / src / telegps-v0.3 / ao_telegps.c
index f9f62316f0396ec7d602d5817eea3af010478f9b..dd699ecff6336a27cc0578fdd925f8780186013a 100644 (file)
 
 #include <ao.h>
 #include <ao_exti.h>
-#include <ao_fat.h>
-
-uint16_t       ao_flight_number = 1;
+#include <ao_tracker.h>
 
 int
 main(void)
 {
        ao_clock_init();
-       
+
 #if HAS_STACK_GUARD
        ao_mpu_init();
 #endif
@@ -48,17 +46,18 @@ main(void)
 
        ao_gps_init();
 #if HAS_LOG
-       ao_gps_report_mega_init();
+       ao_log_init();
 #endif
 
+       ao_tracker_init();
+
        ao_telemetry_init();
-       ao_telemetry_set_interval(AO_SEC_TO_TICKS(1));
 
 #if HAS_SAMPLE_PROFILE
        ao_sample_profile_init();
 #endif
        ao_config_init();
-       
+
        ao_start_scheduler();
        return 0;
 }