Skip to content

Commit

Permalink
Copter: ModeAuto::do_guided use in_guided_mode method
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 committed Sep 15, 2024
1 parent 6f73552 commit 7d69509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduCopter/mode_auto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,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;
}

Expand Down

0 comments on commit 7d69509

Please sign in to comment.