41 lines
835 B
Python
Executable File
41 lines
835 B
Python
Executable File
# Run a selection of common tests
|
|
|
|
from tests.move import *
|
|
from tests.sinqMotor.limits import *
|
|
from tests.sinqMotor.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)
|
|
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_stop_then_move(motor):
|
|
reset(motor)
|
|
stop_then_move(motor, 0)
|
|
|
|
|
|
# def test_reread_limits_from_hw(motor):
|
|
# reread_limits_from_hw(motor)
|