From 3b47da3d30d68e23cc2b449f8b408b2b988ac77d Mon Sep 17 00:00:00 2001 From: murata Date: Fri, 20 May 2022 00:30:05 +0900 Subject: [PATCH] Copter: Clarify that the target_yaw_rate variable is set --- ArduCopter/mode_stabilize_heli.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ArduCopter/mode_stabilize_heli.cpp b/ArduCopter/mode_stabilize_heli.cpp index 2a7056cd1f..e9caa4212b 100644 --- a/ArduCopter/mode_stabilize_heli.cpp +++ b/ArduCopter/mode_stabilize_heli.cpp @@ -22,7 +22,6 @@ bool ModeStabilize_Heli::init(bool ignore_checks) void ModeStabilize_Heli::run() { float target_roll, target_pitch; - float target_yaw_rate; float pilot_throttle_scaled; // apply SIMPLE mode transform to pilot inputs @@ -32,7 +31,7 @@ void ModeStabilize_Heli::run() get_pilot_desired_lean_angles(target_roll, target_pitch, copter.aparm.angle_max, copter.aparm.angle_max); // get pilot's desired yaw rate - target_yaw_rate = get_pilot_desired_yaw_rate(channel_yaw->norm_input_dz()); + float target_yaw_rate = get_pilot_desired_yaw_rate(channel_yaw->norm_input_dz()); // get pilot's desired throttle pilot_throttle_scaled = copter.input_manager.get_pilot_desired_collective(channel_throttle->get_control_in());