Skip to content

Commit

Permalink
Copter: Initialize stack variables
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed Sep 14, 2024
1 parent 79bd823 commit 2a3fbc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduCopter/mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 2a3fbc6

Please sign in to comment.