mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 15:53:56 -04:00
ArduPlane: update signing timestamp on GPS lock
This commit is contained in:
parent
57870cccb9
commit
be14714fa4
@ -450,7 +450,12 @@ void Plane::update_GPS_10Hz(void)
|
|||||||
init_home();
|
init_home();
|
||||||
|
|
||||||
// set system clock for log timestamps
|
// 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) {
|
if (g.compass_enabled) {
|
||||||
// Set compass declination automatically
|
// Set compass declination automatically
|
||||||
|
Loading…
Reference in New Issue
Block a user