AntennaTracker: update signing timestamp on GPS lock

This commit is contained in:
Andrew Tridgell 2016-01-21 17:57:52 +11:00
parent 970dbf3c8d
commit 5bf13ecc69

View File

@ -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