From b7b0ddfddee3f8e21f21d67cd9f522fa50777265 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 1 May 2013 08:56:57 -0700 Subject: [PATCH] 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 --- src/core/ao_telemetry.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2