Files
motorDriverTests/tests/sinqMotor/turboPmac/rot1/test_common.py
2025-07-23 13:20:38 +02:00

26 lines
570 B
Python
Executable File

# Run a selection of common tests
from tests.move import *
from tests.sinqMotor.limits import *
from tests.sinqMotor.turboPmac.reset import reset
def test_move_to_low_limit_switch(motor):
reset(motor)
move_to_low_limit_switch(motor)
def test_move_to_high_limit_switch(motor):
reset(motor)
move_to_high_limit_switch(motor)
def test_move_while_move(motor):
reset(motor)
move_while_move(motor, 1000, -1000)
def test_stop(motor):
reset(motor)
stop(motor, 3000)
#def test_reread_limits_from_hw(motor):
# reread_limits_from_hw(motor)