From cbdc9f070649ac3450a054dfb46b58d92bf26694 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 6 May 2015 10:09:43 +1000 Subject: [PATCH] SITL: fixed autotest SITL --- libraries/SITL/SIM_Aircraft.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/SITL/SIM_Aircraft.cpp b/libraries/SITL/SIM_Aircraft.cpp index 59bf4fc6df..b87e197885 100644 --- a/libraries/SITL/SIM_Aircraft.cpp +++ b/libraries/SITL/SIM_Aircraft.cpp @@ -92,6 +92,7 @@ void Aircraft::update_position(void) if (last_time_us == time_now_us) { time_now_us += frame_time_us; } + last_time_us = time_now_us; sync_frame_time(); }