Skip to content

Commit

Permalink
Added power up/down
Browse files Browse the repository at this point in the history
  • Loading branch information
hanappe committed Mar 1, 2024
1 parent bd6e0de commit 7f51c95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/romi/cnc.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ def synchronize(self, timeout_seconds):
cnc = CNC(args.topic, args.topic)
# Turn off battery charger
cnc.set_relay(0, True)
cnc.power_up()
# Move to 1 meter
cnc.moveto(1.0, 0, 0, 0.75)
time.sleep(1)
# Return to 4 cm before the homing
cnc.moveto(0.04, 0, 0, 0.75)
# Do homing
cnc.homing()
#cnc.homing()
cnc.power_down()
# Recharge the battery
cnc.set_relay(0, False)

0 comments on commit 7f51c95

Please sign in to comment.