Skip to content

Commit

Permalink
Rover: fix set_target_location to always use Guided mode
Browse files Browse the repository at this point in the history
Without this fix, if lua sent a target location while in Guided-within-Auto the Auto submode would be changed out of Guided-within-Auto meaning follow-up commands from lua or a companion computer would be ignored
  • Loading branch information
rmackay9 committed Feb 22, 2022
1 parent bf8ce85 commit 8a7a22e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rover/Rover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ bool Rover::set_target_location(const Location& target_loc)
return false;
}

return control_mode->set_desired_location(target_loc);
return mode_guided.set_desired_location(target_loc);
}

// set target velocity (for use by scripting)
Expand Down

0 comments on commit 8a7a22e

Please sign in to comment.