summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-05-01 08:56:57 -0700
committerKeith Packard <keithp@keithp.com>2013-05-07 20:08:01 -0700
commitb7b0ddfddee3f8e21f21d67cd9f522fa50777265 (patch)
tree3a4acfc971f00095f12c135625d6d94c34815252 /src
parent6a6a5d0afa646564a9277ad3bd80c4225247a27b (diff)
altos: Mark GPS telemetry packets with GPS time stamp
This provides a reasonable accurate indication of the system time when the GPS location data was received, and also makes sure GPS packets get some timestamp when no other telemetry is being transmitted. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/core/ao_telemetry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ao_telemetry.c b/src/core/ao_telemetry.c
index 03aa48d8..c3bbfec5 100644
--- a/src/core/ao_telemetry.c
+++ b/src/core/ao_telemetry.c
@@ -230,6 +230,7 @@ ao_send_location(void)
ao_xmemcpy(&telemetry.location.flags,
&ao_gps_data.flags,
26);
+ telemetry.location.tick = ao_gps_tick;
ao_mutex_put(&ao_gps_mutex);
ao_radio_send(&telemetry, sizeof (telemetry));
ao_telemetry_loc_cur = ao_telemetry_config_max;