Fixed bug in stop() call
This commit is contained in:
+2
-2
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user