Switch from GPLv2 to GPLv2+
[fw/altos] / src / telegps-v0.3 / ao_telegps.c
index 608817e7601a788d2e7da1241a44faa91ffabfdd..abc80954b5f4039ffbc00939dc48f50a0b97ff07 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
 
 #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,18 +47,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;
 }