We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0086f9c commit 82772efCopy full SHA for 82772ef
resources/external_control.urscript
@@ -690,9 +690,11 @@ while control_mode > MODE_STOPPED:
690
# Clear remaining trajectory points
691
if control_mode == MODE_FORWARD:
692
kill thread_trajectory
693
- clear_remaining_trajectory_points()
694
- stopj(STOPJ_ACCELERATION)
695
- socket_send_int(TRAJECTORY_RESULT_CANCELED, "trajectory_socket")
+ if trajectory_points_left > 0:
+ clear_remaining_trajectory_points()
+ stopj(STOPJ_ACCELERATION)
696
+ socket_send_int(TRAJECTORY_RESULT_CANCELED, "trajectory_socket")
697
+ end
698
# Stop freedrive
699
elif control_mode == MODE_FREEDRIVE:
700
textmsg("Leaving freedrive mode")
0 commit comments