51 lines
955 B
Python
Executable File
51 lines
955 B
Python
Executable File
# Run a selection of common tests
|
|
|
|
from setup.move import *
|
|
from setup.sinqMotor.limits import *
|
|
from setup.home import *
|
|
from setup.sinqMotor.masterMacs.reset import reset
|
|
|
|
|
|
def test_reset(motor):
|
|
reset(motor, 4)
|
|
reset(motor, 2)
|
|
|
|
|
|
def test_move_to_low_limit_switch(motor):
|
|
reset(motor, 1)
|
|
move_to_low_limit_switch(motor)
|
|
|
|
|
|
def test_move_to_high_limit_switch(motor):
|
|
reset(motor, 1)
|
|
move_to_high_limit_switch(motor)
|
|
|
|
|
|
def test_move_while_move(motor):
|
|
reset(motor, 1)
|
|
move_while_move(motor, -60, -20)
|
|
|
|
|
|
def test_stop(motor):
|
|
reset(motor, 1)
|
|
stop(motor, 18)
|
|
|
|
|
|
def test_home(motor):
|
|
reset(motor, 1)
|
|
home(motor, True)
|
|
|
|
|
|
def test_start_home_while_moving(motor):
|
|
reset(motor, 1)
|
|
start_home_while_moving(motor, 10, True)
|
|
|
|
|
|
def test_start_home_while_moving(motor):
|
|
reset(motor, 1)
|
|
start_home_while_moving(motor, 10, True)
|
|
|
|
|
|
# def test_reread_limits_from_hw(motor):
|
|
# reread_limits_from_hw(motor)
|