Copter: ModeAuto::do_guided
use in_guided_mode
method
This commit is contained in:
parent
da33532dbb
commit
ad1bf0b59e
@ -824,7 +824,7 @@ void ModeAuto::exit_mission()
|
||||
bool ModeAuto::do_guided(const AP_Mission::Mission_Command& cmd)
|
||||
{
|
||||
// only process guided waypoint if we are in guided mode
|
||||
if (copter.flightmode->mode_number() != Mode::Number::GUIDED && !(copter.flightmode->mode_number() == Mode::Number::AUTO && _mode == SubMode::NAVGUIDED)) {
|
||||
if (!copter.flightmode->in_guided_mode()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user