Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/galil.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ def test_GIVEN_motors_THEN_check_motor_encoder_diff_works(self):
assert isinstance(eres, float)
self.zero_motors()

# make motor think it is a stepper motor as we only
# calculate _MTRENC_DIFF when it is
self.pv.set_pv_value("MOT:MTR0101_MTRTYPE_STATUS.SIMM", "YES")
self.pv.set_pv_value("MOT:MTR0101_MTRTYPE_STATUS.SVAL", 2)
self.pv.set_pv_value("MOT:MTR0101_MTRTYPE_STATUS.PROC", 1)

# move to initial position and check in step
self.pv.set_pv_value("MOT:MTR0101", val, wait=True)
self.pv.assert_that_pv_is_number("MOT:MTR0101", val)
Expand Down
Loading