From 45493cc67ad618ca311116c757e5c117be4f9bce Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 23 Oct 2013 23:27:22 +1100 Subject: [PATCH] Plane: set system time on GPS lock --- ArduPlane/ArduPlane.pde | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArduPlane/ArduPlane.pde b/ArduPlane/ArduPlane.pde index 5e66d2c698..455c532bc5 100644 --- a/ArduPlane/ArduPlane.pde +++ b/ArduPlane/ArduPlane.pde @@ -1027,6 +1027,9 @@ static void update_GPS(void) } else { init_home(); + // set system clock for log timestamps + hal.util->set_system_clock(g_gps->time_epoch_usec()); + if (g.compass_enabled) { // Set compass declination automatically compass.set_initial_location(g_gps->latitude, g_gps->longitude);