Copter: fix auto mode is_taking_off

This commit is contained in:
Leonard Hall 2022-08-29 13:49:47 +09:00 committed by Randy Mackay
parent 8bd26dffac
commit 0b1f959ede
1 changed files with 1 additions and 1 deletions

View File

@ -523,7 +523,7 @@ bool ModeAuto::is_landing() const
bool ModeAuto::is_taking_off() const
{
return ((_mode == SubMode::TAKEOFF) && !wp_nav->reached_wp_destination());
return ((_mode == SubMode::TAKEOFF) && !auto_takeoff_complete);
}
// auto_payload_place_start - initialises controller to implement a placing