tinymovr 3.2.0__tar.gz → 3.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tinymovr-3.2.0 → tinymovr-3.2.1}/PKG-INFO +1 -1
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_board.py +8 -5
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr.egg-info/PKG-INFO +1 -1
- {tinymovr-3.2.0 → tinymovr-3.2.1}/MANIFEST.in +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/README.md +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/pyproject.toml +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/setup.cfg +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/setup.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_amt22.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_as5047.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_dfu.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_differential.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_export_import.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_hall.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_homing.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_nvm.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_rates.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_simulation.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_traj_planner.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_watchdog.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/__init__.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/bus_manager.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/bus_router.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/channel.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/cli.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/codec/__init__.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/codec/codec.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/config/__init__.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/config/config.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/constants.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/device_discovery.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/dfu.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/gui/__init__.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/gui/gui.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/gui/helpers.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/gui/widgets.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/gui/window.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/gui/worker.py +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/resources/icons/app_icon.png +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/resources/icons/call.png +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/resources/icons/call@2x.png +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/resources/icons/call_dark.png +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/resources/icons/call_dark@2x.png +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/resources/icons/empty.png +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/resources/icons/empty@2x.png +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/resources/icons/empty_dark.png +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/resources/icons/empty_dark@2x.png +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/dfu_1_0_x.yaml +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/dfu_1_1_x.yaml +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_1_3_x.yaml +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_1_4_x.yaml +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_1_5_x.yaml +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_1_6_x.yaml +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_2_0_x.yaml +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_2_1_x.yaml +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_2_3_x.yaml +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_2_4_x.yaml +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_2_5_x.yaml +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_2_6_x.yaml +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_3_0_x.yaml +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_3_1_x.yaml +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr.egg-info/SOURCES.txt +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr.egg-info/dependency_links.txt +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr.egg-info/entry_points.txt +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr.egg-info/requires.txt +0 -0
- {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr.egg-info/top_level.txt +0 -0
|
@@ -92,9 +92,10 @@ class TestBoard(TMTestCase):
|
|
|
92
92
|
@pytest.mark.hitl_mini
|
|
93
93
|
def test_d_position_control(self):
|
|
94
94
|
"""
|
|
95
|
-
Test position control
|
|
95
|
+
Test position control relative to the current motor position.
|
|
96
96
|
"""
|
|
97
97
|
hw_rev = self.tm.hw_revision
|
|
98
|
+
position_step = 600 * ticks if 30 <= hw_rev < 40 else 3000 * ticks
|
|
98
99
|
self.check_state(0)
|
|
99
100
|
self.tm.controller.current.Iq_limit = 5
|
|
100
101
|
self.try_calibrate()
|
|
@@ -106,17 +107,19 @@ class TestBoard(TMTestCase):
|
|
|
106
107
|
self.tm.controller.position_mode()
|
|
107
108
|
self.check_state(2)
|
|
108
109
|
|
|
109
|
-
self.tm.
|
|
110
|
+
start_position = self.tm.sensors.user_frame.position_estimate
|
|
111
|
+
self.tm.controller.position.setpoint = start_position
|
|
110
112
|
time.sleep(0.4)
|
|
111
113
|
|
|
112
|
-
for i in range(5):
|
|
113
|
-
|
|
114
|
+
for i in (*range(5), *range(3, -1, -1)):
|
|
115
|
+
target_position = start_position + i * position_step
|
|
116
|
+
self.tm.controller.position.setpoint = target_position
|
|
114
117
|
if hw_rev > 20:
|
|
115
118
|
time.sleep(0.50)
|
|
116
119
|
else:
|
|
117
120
|
time.sleep(0.20)
|
|
118
121
|
self.assertAlmostEqual(
|
|
119
|
-
|
|
122
|
+
target_position, self.tm.sensors.user_frame.position_estimate, delta=1000 * ticks
|
|
120
123
|
)
|
|
121
124
|
|
|
122
125
|
@pytest.mark.hitl_default
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|