long report_time;
+ double time;
double time_change;
int tick;
time_change = 0;
}
- if (state == Altos.ao_flight_pad) {
+ time = tick / 100.0;
+
+ if (state == Altos.ao_flight_pad || state == Altos.ao_flight_idle) {
/* Track consecutive 'good' gps reports, waiting for 10 of them */
if (data.gps != null && data.gps.locked && data.gps.nsat >= 4)