File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,7 @@ void LogicController::SetModeAuto() {
374374 if (processState == PROCESS_STATE_MANUAL) {
375375 // only do something if we are in manual mode
376376 this ->Reset ();
377+ manualWaypointController.Reset ();
377378 }
378379}
379380void LogicController::SetModeManual ()
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ ManualWaypointController::~ManualWaypointController() {}
99
1010void ManualWaypointController::Reset () {
1111 waypoints.clear ();
12+ num_waypoints = 0 ;
13+ cleared_waypoints.clear ();
1214}
1315
1416bool ManualWaypointController::HasWork () {
Original file line number Diff line number Diff line change @@ -422,6 +422,7 @@ void MapData::setAutonomousMode(string rover_name)
422422{
423423 update_mutex.lock ();
424424 rover_mode[rover_name] = 1 ;
425+ resetWaypointPathForSelectedRover (rover_name);
425426 update_mutex.unlock ();
426427}
427428
You can’t perform that action at this time.
0 commit comments