[backlog] fix issue with bad altitudes in backlog, resulting from no-fix dps getting included in averages

main-solar-only
Richard Meadows 2016-03-14 21:00:58 +00:00
rodzic 90e17f51bf
commit 2f35132c60
1 zmienionych plików z 9 dodań i 9 usunięć

Wyświetl plik

@ -107,17 +107,17 @@ void run_sequencer(uint32_t n)
/* Telemetry */
telemetry_sequence(dp, n);
/* Accumulator for backlog */
accumulator_add(dp);
if (gps_is_locked() == GPS_LOCKED) { /* gps is locked. we can use this data */
/* Accumulator for backlog */
accumulator_add(dp);
/* Backlog */
if (((n % 15) == 10) && /* Once per hour with 4 minute wakeup */
gps_is_locked() == GPS_LOCKED) { /* And the gps is locked */
/* Backlog */
if ((n % 15) == 10) { /* Once per hour with 4 minute wakeup */
/* replace some values from this sample with averages */
accumulator_read(dp);
/* replace some values from this sample with averages */
accumulator_read(dp);
record_backlog(dp);
record_backlog(dp);
}
}
}