From 2d09b3fcefae20b687229252413722177793856b Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Mon, 23 May 2022 09:53:24 -0700 Subject: [PATCH] Rover: fix compiler warning, uninitialized variables in GCS msg --- Rover/GCS_Mavlink.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rover/GCS_Mavlink.cpp b/Rover/GCS_Mavlink.cpp index af76d74b8f..589ed63951 100644 --- a/Rover/GCS_Mavlink.cpp +++ b/Rover/GCS_Mavlink.cpp @@ -149,8 +149,8 @@ int16_t GCS_MAVLINK_Rover::vfr_hud_throttle() const void GCS_MAVLINK_Rover::send_rangefinder() const { - float distance; - float voltage; + float distance = 0; + float voltage = 0; bool got_one = false; // report smaller distance of all rangefinders