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_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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue