[sequencer] Bodge to limit gps rate to once per 2 minutes

main-solar-only
Richard Meadows 2016-01-15 22:18:19 +00:00
rodzic a9a8e20071
commit 45cf89abbf
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -75,8 +75,11 @@ void telemetry_sequence(struct tracker_datapoint* dp, uint32_t n)
if (location_aprs_active()) { if (location_aprs_active()) {
#endif #endif
/* APRS */ if (gps_get_flight_state() == GPS_FLIGHT_STATE_FLOAT || /* once every 4 minutes at float */
aprs_telemetry(dp); (n % 2)) { /* once every 2 before */
/* APRS */
aprs_telemetry(dp);
}
#if APRS_USE_GEOFENCE #if APRS_USE_GEOFENCE
} }