mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-13 10:03:57 -03:00
Copter: minor format fixes
This commit is contained in:
parent
91e32a8339
commit
a780759221
@ -75,7 +75,7 @@ void ModeLand::gps_run()
|
|||||||
motors->set_desired_spool_state(AP_Motors::DesiredSpoolState::THROTTLE_UNLIMITED);
|
motors->set_desired_spool_state(AP_Motors::DesiredSpoolState::THROTTLE_UNLIMITED);
|
||||||
|
|
||||||
// pause before beginning land descent
|
// 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;
|
land_pause = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,7 +128,7 @@ void ModeLand::nogps_run()
|
|||||||
motors->set_desired_spool_state(AP_Motors::DesiredSpoolState::THROTTLE_UNLIMITED);
|
motors->set_desired_spool_state(AP_Motors::DesiredSpoolState::THROTTLE_UNLIMITED);
|
||||||
|
|
||||||
// pause before beginning land descent
|
// 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;
|
land_pause = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,8 +82,7 @@ void Mode::_TakeOff::stop()
|
|||||||
// pilot_climb_rate is both an input and an output
|
// pilot_climb_rate is both an input and an output
|
||||||
// takeoff_climb_rate is only an output
|
// takeoff_climb_rate is only an output
|
||||||
// has side-effect of turning takeoff off when timeout as expired
|
// has side-effect of turning takeoff off when timeout as expired
|
||||||
void Mode::_TakeOff::get_climb_rates(float& pilot_climb_rate,
|
void Mode::_TakeOff::get_climb_rates(float& pilot_climb_rate, float& takeoff_climb_rate)
|
||||||
float& takeoff_climb_rate)
|
|
||||||
{
|
{
|
||||||
// return pilot_climb_rate if take-off inactive
|
// return pilot_climb_rate if take-off inactive
|
||||||
if (!_running) {
|
if (!_running) {
|
||||||
|
Loading…
Reference in New Issue
Block a user