Skip to content

Commit a760043

Browse files
committed
move_motor should set speed_sp instead of duty_cycle_sp
1 parent 4b755b5 commit a760043

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils/move_motor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141

4242
motor.reset()
4343
log.info("Motor %s, move to position %d" % (args.motor, args.degrees))
44-
motor.run_to_rel_pos(duty_cycle_sp=args.speed, position_sp=args.degrees)
44+
motor.run_to_rel_pos(speed_sp=args.speed,
45+
# ramp_down_sp=200,
46+
position_sp=args.degrees)
4547
motor.wait_for_running()
4648
log.info("Motor %s is running" % args.motor)
4749
motor.wait_for_stop()

0 commit comments

Comments
 (0)