X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Ftelegps-v0.3%2Fao_telegps.c;h=abc80954b5f4039ffbc00939dc48f50a0b97ff07;hb=f7ca88282466c271bad5e25e804729580fe83c47;hp=608817e7601a788d2e7da1241a44faa91ffabfdd;hpb=c781469ff907a32bd43a5d781391b6859b14cd32;p=fw%2Faltos diff --git a/src/telegps-v0.3/ao_telegps.c b/src/telegps-v0.3/ao_telegps.c index 608817e7..abc80954 100644 --- a/src/telegps-v0.3/ao_telegps.c +++ b/src/telegps-v0.3/ao_telegps.c @@ -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 @@ -17,15 +18,13 @@ #include #include -#include - -uint16_t ao_flight_number = 1; +#include 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; }