From 5bf13ecc69716fb491ec575cc7b953ca8511614f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 21 Jan 2016 17:57:52 +1100 Subject: [PATCH] AntennaTracker: update signing timestamp on GPS lock --- AntennaTracker/sensors.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/AntennaTracker/sensors.cpp b/AntennaTracker/sensors.cpp index 0770e30f0c..059f3669e9 100644 --- a/AntennaTracker/sensors.cpp +++ b/AntennaTracker/sensors.cpp @@ -114,7 +114,12 @@ void Tracker::update_GPS(void) set_home(current_loc); // set system clock for log timestamps - hal.util->set_system_clock(gps.time_epoch_usec()); + uint64_t gps_timestamp = gps.time_epoch_usec(); + + hal.util->set_system_clock(gps_timestamp); + + // update signing timestamp + GCS_MAVLINK::update_signing_timestamp(gps_timestamp); if (g.compass_enabled) { // Set compass declination automatically