kopia lustrzana https://github.com/bristol-seds/pico-tracker
[backlog] fix issue with bad altitudes in backlog, resulting from no-fix dps getting included in averages
rodzic
90e17f51bf
commit
2f35132c60
|
@ -107,17 +107,17 @@ void run_sequencer(uint32_t n)
|
||||||
/* Telemetry */
|
/* Telemetry */
|
||||||
telemetry_sequence(dp, n);
|
telemetry_sequence(dp, n);
|
||||||
|
|
||||||
|
if (gps_is_locked() == GPS_LOCKED) { /* gps is locked. we can use this data */
|
||||||
/* Accumulator for backlog */
|
/* Accumulator for backlog */
|
||||||
accumulator_add(dp);
|
accumulator_add(dp);
|
||||||
|
|
||||||
/* Backlog */
|
/* Backlog */
|
||||||
if (((n % 15) == 10) && /* Once per hour with 4 minute wakeup */
|
if ((n % 15) == 10) { /* Once per hour with 4 minute wakeup */
|
||||||
gps_is_locked() == GPS_LOCKED) { /* And the gps is locked */
|
|
||||||
|
|
||||||
/* replace some values from this sample with averages */
|
/* replace some values from this sample with averages */
|
||||||
accumulator_read(dp);
|
accumulator_read(dp);
|
||||||
|
|
||||||
|
|
||||||
record_backlog(dp);
|
record_backlog(dp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue