From 6f204c491335af88dcf1c13484e3d98f82868296 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Wed, 1 Aug 2018 22:21:58 -0400 Subject: [PATCH] FlightTask initialize _dist_to_bottom - fixes Coverity CID 306248 --- src/lib/FlightTasks/tasks/FlightTask.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/FlightTasks/tasks/FlightTask.hpp b/src/lib/FlightTasks/tasks/FlightTask.hpp index dc104267ab..2dec30bdd2 100644 --- a/src/lib/FlightTasks/tasks/FlightTask.hpp +++ b/src/lib/FlightTasks/tasks/FlightTask.hpp @@ -160,7 +160,7 @@ protected: matrix::Vector3f _position; /**< current vehicle position */ matrix::Vector3f _velocity; /**< current vehicle velocity */ float _yaw = 0.f; /**< current vehicle yaw heading */ - float _dist_to_bottom; /**< current height above ground level */ + float _dist_to_bottom = 0.0f; /**< current height above ground level */ /** * Setpoints which the position controller has to execute.