X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Ftelegps-v0.3%2Fao_telegps.c;h=abc80954b5f4039ffbc00939dc48f50a0b97ff07;hp=f9f62316f0396ec7d602d5817eea3af010478f9b;hb=1085ec5d57e0ed5d132f2bbdac1a0b6a32c0ab4a;hpb=203951f6e049ec7e95489849a2bfaa01aa19c0c9 diff --git a/src/telegps-v0.3/ao_telegps.c b/src/telegps-v0.3/ao_telegps.c index f9f62316..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,17 +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; }