Skip to content

Commit

Permalink
Merge pull request #344 from tinymovr/fix_manifest_and_tests
Browse files Browse the repository at this point in the history
Fix manifest and tests
  • Loading branch information
yconst authored Apr 26, 2024
2 parents fa968ce + 69638a3 commit 933cf1b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions studio/Python/Manifest.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ include tinymovr/specs/tinymovr_1_3_x.yaml
include tinymovr/specs/tinymovr_1_4_x.yaml
include tinymovr/specs/tinymovr_1_5_x.yaml
include tinymovr/specs/tinymovr_1_6_x.yaml
include tinymovr/specs/tinymovr_2_0_x.yaml
include tinymovr/specs/dfu_1_0_x.yaml
include tinymovr/specs/dfu_1_1_x.yaml
11 changes: 9 additions & 2 deletions studio/Python/tests/test_base_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,23 @@ def test_position_control(self):
"""
Test position control
"""
hw_rev = self.tm.hw_revision
self.check_state(0)
self.tm.motor.I_cal = 5
if hw_rev > 20:
self.tm.motor.I_cal = 0.8
else:
self.tm.motor.I_cal = 5
self.tm.controller.current.Iq_limit = 5
self.try_calibrate()
self.tm.controller.position_mode()
self.check_state(2)

for i in range(5):
self.tm.controller.position.setpoint = i * 3000 * ticks
time.sleep(0.25)
if hw_rev > 20:
time.sleep(0.50)
else:
time.sleep(0.25)
self.assertAlmostEqual(
i * 3000 * ticks, self.tm.sensors.user_frame.position_estimate, delta=1000 * ticks
)
Expand Down

0 comments on commit 933cf1b

Please sign in to comment.