From 2a3fbc61e79fdf807af5db4937ed8dcb49e73172 Mon Sep 17 00:00:00 2001 From: muramura Date: Sat, 14 Sep 2024 19:10:31 +0900 Subject: [PATCH] Copter: Initialize stack variables --- ArduCopter/mode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/mode.cpp b/ArduCopter/mode.cpp index 5788ac42a645f1..70b86352aec198 100644 --- a/ArduCopter/mode.cpp +++ b/ArduCopter/mode.cpp @@ -516,7 +516,7 @@ void Mode::get_pilot_desired_lean_angles(float &roll_out_cd, float &pitch_out_cd // transform pilot's roll or pitch input into a desired velocity Vector2f Mode::get_pilot_desired_velocity(float vel_max) const { - Vector2f vel; + Vector2f vel{0.0f, 0.0f}; // throttle failsafe check if (copter.failsafe.radio || !rc().has_ever_seen_rc_input()) {