Updated some tests

This commit is contained in:
2025-07-24 12:48:36 +02:00
parent d783242c59
commit 8a573295f0
4 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
pvprefix: DRVTESTS
versions:
turboPmac: 1.3
turboPmac: "mathis_s"
masterMacs: 1.2
controllers:
turboPmac1:

View File

@@ -8,12 +8,12 @@ def stop_reset_enable_move_sequence(motor, target):
motor.write_field('reseterrorpv', 1)
# Wait until the motor is disabled.
motor.wait_disabled()
# motor.wait_disabled()
motor.write_field('enable', 1)
# Wait until the motor is enabled.
motor.wait_enabled()
# motor.wait_enabled()
motor.move_and_wait(target)
assert motor.at_target(target)

View File

@@ -2,8 +2,12 @@
from tests.move import *
from tests.sinqMotor.limits import *
from tests.sinqMotor.turboPmac.common import *
from tests.sinqMotor.turboPmac.reset import reset
def test_stop_reset_enable_move_sequence(motor):
stop_reset_enable_move_sequence(motor, 5)
stop_reset_enable_move_sequence(motor, 0)
def test_move_to_low_limit_switch(motor):
reset(motor, -30)

View File

@@ -8,7 +8,7 @@ from tests.sinqMotor.turboPmac.reset import reset
def test_stop_reset_enable_move_sequence(motor):
stop_reset_enable_move_sequence(motor, 5)
stop_reset_enable_move_sequence(motor, 0)
def test_move_to_low_limit_switch(motor):
reset(motor)