Fixed bug in stop() call

This commit is contained in:
2025-12-05 16:57:53 +01:00
parent 7d39da5a09
commit 4ed368f69c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ def move_while_move(motor: Motor, first_target, second_target, time_first_target
def stop_then_move(motor: Motor, target):
motor.stop('stop', 1)
motor.stop()
motor.wait_for_done()
motor.move_and_wait(target)
@@ -52,7 +52,7 @@ def stop(motor: Motor, target):
"""
motor.move(target)
time.sleep(1)
motor.stop(1)
motor.stop()
motor.wait_for_done()
assert not motor.at_target(target)
assert not motor.has_error()
+1 -1
View File
@@ -19,7 +19,7 @@ def reset(motor: SinqMotor, target):
if target is None:
target = motor.default_position
motor.stop(1)
motor.stop()
motor.wait_for_done()
motor.reset()
motor.wait_disabled()