From d8df31c023a5bf098968ad318ab2a6895dc8158e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 27 May 2015 11:51:33 +1000 Subject: [PATCH] SITL: initialise a couple of variables to prevent a valgrind error --- libraries/SITL/SIM_Aircraft.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/SITL/SIM_Aircraft.cpp b/libraries/SITL/SIM_Aircraft.cpp index f320c8d852..5579e1d499 100644 --- a/libraries/SITL/SIM_Aircraft.cpp +++ b/libraries/SITL/SIM_Aircraft.cpp @@ -75,6 +75,9 @@ Aircraft::Aircraft(const char *home_str, const char *frame_str) : free(s); set_speedup(1); + + last_wall_time_us = get_wall_time_us(); + frame_counter = 0; } /*