Skip to content

Commit

Permalink
Rover: stop circle mode if unable to track
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendade committed Sep 2, 2024
1 parent 94336a5 commit f7234ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Rover/mode_circle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,11 @@ void ModeCircle::update()
// Update depending on stage
if (!reached_edge) {
update_drive_to_radius();

} else if (dist_to_edge_m > config.radius * 0.2) {
// if more than 20% inside or outside circle radius, stop vehicle
GCS_SEND_TEXT(MAV_SEVERITY_ERROR, "Circle: vehicle unable to turn fast enough to track circle. Stopping vehicle.");
stop_vehicle();
return;
} else {
update_circling();
}
Expand Down

0 comments on commit f7234ef

Please sign in to comment.