Skip to content

Commit

Permalink
Added logging output for freedrive mode in urscript
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauch committed Jun 22, 2023
1 parent 792b90c commit 1790426
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/external_control.urscript
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ def tool_contact_detection():
kill thread_trajectory
clear_remaining_trajectory_points()
elif control_mode == MODE_FREEDRIVE:
textmsg("Leaving freedrive mode")
end_freedrive_mode()
else:
kill thread_move
Expand Down Expand Up @@ -333,6 +334,7 @@ while keepalive > 0 and control_mode > MODE_STOPPED:
clear_remaining_trajectory_points()
# Stop freedrive
elif control_mode == MODE_FREEDRIVE:
textmsg("Leaving freedrive mode")
end_freedrive_mode()
end

Expand Down Expand Up @@ -383,8 +385,10 @@ while keepalive > 0 and control_mode > MODE_STOPPED:
set_servo_pose(pose)
elif control_mode == MODE_FREEDRIVE:
if params_mult[2] == FREEDRIVE_MODE_START:
textmsg("Entering freedrive mode")
freedrive_mode()
elif params_mult[2] == FREEDRIVE_MODE_STOP:
textmsg("Leaving freedrive mode")
end_freedrive_mode()
end
end
Expand Down

0 comments on commit 1790426

Please sign in to comment.