Rover: fix compiler warning, uninitialized variables in GCS msg

This commit is contained in:
Tom Pittenger 2022-05-23 09:53:24 -07:00 committed by Randy Mackay
parent e6e45eda97
commit 2d09b3fcef
1 changed files with 2 additions and 2 deletions

View File

@ -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