From a78075922107c008a39b205386cab44bf29b5eca Mon Sep 17 00:00:00 2001 From: Leonard Hall Date: Wed, 12 May 2021 13:40:33 +0900 Subject: [PATCH] Copter: minor format fixes --- ArduCopter/mode_land.cpp | 4 ++-- ArduCopter/takeoff.cpp | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ArduCopter/mode_land.cpp b/ArduCopter/mode_land.cpp index 20c21436c5..1e0f2105f8 100644 --- a/ArduCopter/mode_land.cpp +++ b/ArduCopter/mode_land.cpp @@ -75,7 +75,7 @@ void ModeLand::gps_run() motors->set_desired_spool_state(AP_Motors::DesiredSpoolState::THROTTLE_UNLIMITED); // pause before beginning land descent - if(land_pause && millis()-land_start_time >= LAND_WITH_DELAY_MS) { + if (land_pause && millis()-land_start_time >= LAND_WITH_DELAY_MS) { land_pause = false; } @@ -128,7 +128,7 @@ void ModeLand::nogps_run() motors->set_desired_spool_state(AP_Motors::DesiredSpoolState::THROTTLE_UNLIMITED); // pause before beginning land descent - if(land_pause && millis()-land_start_time >= LAND_WITH_DELAY_MS) { + if (land_pause && millis()-land_start_time >= LAND_WITH_DELAY_MS) { land_pause = false; } diff --git a/ArduCopter/takeoff.cpp b/ArduCopter/takeoff.cpp index 116153c10b..57c16ae446 100644 --- a/ArduCopter/takeoff.cpp +++ b/ArduCopter/takeoff.cpp @@ -82,8 +82,7 @@ void Mode::_TakeOff::stop() // pilot_climb_rate is both an input and an output // takeoff_climb_rate is only an output // has side-effect of turning takeoff off when timeout as expired -void Mode::_TakeOff::get_climb_rates(float& pilot_climb_rate, - float& takeoff_climb_rate) +void Mode::_TakeOff::get_climb_rates(float& pilot_climb_rate, float& takeoff_climb_rate) { // return pilot_climb_rate if take-off inactive if (!_running) {