From 1f58e0080a31d0cbbcbcbfb1642ebc8945918990 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 6 Jul 2015 09:21:49 +1000 Subject: [PATCH] SITL: fixed some build warnings --- libraries/SITL/SIM_Aircraft.cpp | 1 - libraries/SITL/SIM_Aircraft.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/SITL/SIM_Aircraft.cpp b/libraries/SITL/SIM_Aircraft.cpp index 5579e1d499..69693ffabb 100644 --- a/libraries/SITL/SIM_Aircraft.cpp +++ b/libraries/SITL/SIM_Aircraft.cpp @@ -49,7 +49,6 @@ Aircraft::Aircraft(const char *home_str, const char *frame_str) : gyro_noise(radians(0.1f)), accel_noise(0.3), rate_hz(400), - last_time_us(0), autotest_dir(NULL), #ifdef __CYGWIN__ min_sleep_time(20000) diff --git a/libraries/SITL/SIM_Aircraft.h b/libraries/SITL/SIM_Aircraft.h index 7ad6c98d80..00c638b250 100644 --- a/libraries/SITL/SIM_Aircraft.h +++ b/libraries/SITL/SIM_Aircraft.h @@ -130,8 +130,8 @@ protected: double rand_normal(double mean, double stddev); private: - uint64_t last_time_us; - uint32_t frame_counter; + uint64_t last_time_us = 0; + uint32_t frame_counter = 0; const uint32_t min_sleep_time; };