projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Reduce configuration data telemetry to once per 5 seconds
[fw/altos]
/
src
/
kernel
/
ao_telemetry.c
diff --git
a/src/kernel/ao_telemetry.c
b/src/kernel/ao_telemetry.c
index dcda0dd7fdb451e3f797fa2f2213f4465c931111..6fb30069ee5be977a6112b2058cf3753c5111f7a 100644
(file)
--- a/
src/kernel/ao_telemetry.c
+++ b/
src/kernel/ao_telemetry.c
@@
-340,9
+340,6
@@
ao_send_location(void)
ao_xmemcpy(&telemetry.location.flags,
&ao_gps_data.flags,
26);
ao_xmemcpy(&telemetry.location.flags,
&ao_gps_data.flags,
26);
-#if HAS_TRACKER
- telemetry.location.state = ao_flight_state | AO_GPS_STATE_VALID;
-#endif
telemetry.location.tick = ao_gps_tick;
ao_mutex_put(&ao_gps_mutex);
ao_radio_send(&telemetry, sizeof (telemetry));
telemetry.location.tick = ao_gps_tick;
ao_mutex_put(&ao_gps_mutex);
ao_radio_send(&telemetry, sizeof (telemetry));
@@
-524,7
+521,7
@@
ao_telemetry_set_interval(uint16_t interval)
ao_telemetry_companion_cur = cur;
#endif
ao_telemetry_companion_cur = cur;
#endif
- ao_telemetry_config_max = AO_SEC_TO_TICKS(
1
) / interval;
+ ao_telemetry_config_max = AO_SEC_TO_TICKS(
5
) / interval;
#if HAS_COMPANION
if (ao_telemetry_config_max > cur)
cur++;
#if HAS_COMPANION
if (ao_telemetry_config_max > cur)
cur++;