From 3296b1c7f7af9b95711121d5b1b45618fccd4928 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 25 Nov 2018 09:24:47 +1100 Subject: [PATCH] SITL: correct use of uninitialized values in simulated gimbal --- libraries/SITL/SIM_Gimbal.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/SITL/SIM_Gimbal.cpp b/libraries/SITL/SIM_Gimbal.cpp index 989c4a713f..31d9c53c79 100644 --- a/libraries/SITL/SIM_Gimbal.cpp +++ b/libraries/SITL/SIM_Gimbal.cpp @@ -222,6 +222,7 @@ void Gimbal::param_send(const struct gimbal_param *p) param_value.param_value = p->value; param_value.param_count = 0; param_value.param_index = 0; + param_value.param_type = MAV_PARAM_TYPE_REAL32; mavlink_status_t *chan0_status = mavlink_get_channel_status(MAVLINK_COMM_0); uint8_t saved_seq = chan0_status->current_tx_seq;