From 1400d0155c6f1e903562637b14e16a4d5df4f6c9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 27 May 2015 11:50:38 +1000 Subject: [PATCH] AP_Mount: fixed valgrind error with gimbal code --- libraries/AP_Mount/AP_Gimbal.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_Mount/AP_Gimbal.h b/libraries/AP_Mount/AP_Gimbal.h index 998d32ffc4..f0bd59c0f1 100644 --- a/libraries/AP_Mount/AP_Gimbal.h +++ b/libraries/AP_Mount/AP_Gimbal.h @@ -35,6 +35,7 @@ public: yawErrorLimit(0.1f) { _compid = compid; + memset(&_report_msg, 0, sizeof(_report_msg)); } void update_target(Vector3f newTarget);