From 60c3ae1ec2c79f88c0994b94991d38b0b7a8351f Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 24 Jan 2018 17:09:38 +0900 Subject: [PATCH] Copter: fix spelling in drift mode variable name non-functional change --- ArduCopter/mode_drift.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ArduCopter/mode_drift.cpp b/ArduCopter/mode_drift.cpp index 986a1b682b..e69d8b5f72 100644 --- a/ArduCopter/mode_drift.cpp +++ b/ArduCopter/mode_drift.cpp @@ -40,7 +40,7 @@ bool Copter::ModeDrift::init(bool ignore_checks) // should be called at 100hz or more void Copter::ModeDrift::run() { - static float breaker = 0.0f; + static float braker = 0.0f; static float roll_input = 0.0f; float target_roll, target_pitch; float target_yaw_rate; @@ -90,11 +90,11 @@ void Copter::ModeDrift::run() // If we let go of sticks, bring us to a stop if(is_zero(target_pitch)){ // .14/ (.03 * 100) = 4.6 seconds till full braking - breaker += .03f; - breaker = MIN(breaker, DRIFT_SPEEDGAIN); - target_pitch = pitch_vel * breaker; + braker += .03f; + braker = MIN(braker, DRIFT_SPEEDGAIN); + target_pitch = pitch_vel * braker; }else{ - breaker = 0.0f; + braker = 0.0f; } // set motors to full range