tinymovr 2.3.3__tar.gz → 2.4.0__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-2.3.3 → tinymovr-2.4.0}/PKG-INFO +1 -1
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tests/test_amt22.py +5 -5
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tests/test_as5047.py +6 -6
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tests/test_board.py +13 -7
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tests/test_hall.py +3 -3
- tinymovr-2.4.0/tests/test_nvm.py +710 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tests/test_watchdog.py +7 -1
- tinymovr-2.4.0/tinymovr/specs/tinymovr_2_4_x.yaml +636 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr.egg-info/PKG-INFO +1 -1
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr.egg-info/SOURCES.txt +2 -1
- tinymovr-2.3.3/tests/test_nvm.py +0 -250
- {tinymovr-2.3.3 → tinymovr-2.4.0}/MANIFEST.in +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/README.md +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/pyproject.toml +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/setup.cfg +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/setup.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tests/test_dfu.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tests/test_homing.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tests/test_rates.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tests/test_simulation.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tests/test_traj_planner.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/__init__.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/bus_manager.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/bus_router.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/channel.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/cli.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/codec/__init__.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/codec/codec.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/config/__init__.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/config/config.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/constants.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/device_discovery.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/dfu.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/gui/__init__.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/gui/gui.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/gui/helpers.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/gui/widgets.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/gui/window.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/gui/worker.py +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/resources/icons/app_icon.png +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/resources/icons/call.png +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/resources/icons/call@2x.png +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/resources/icons/call_dark.png +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/resources/icons/call_dark@2x.png +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/resources/icons/empty.png +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/resources/icons/empty@2x.png +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/resources/icons/empty_dark.png +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/resources/icons/empty_dark@2x.png +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/specs/dfu_1_0_x.yaml +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/specs/dfu_1_1_x.yaml +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/specs/tinymovr_1_3_x.yaml +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/specs/tinymovr_1_4_x.yaml +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/specs/tinymovr_1_5_x.yaml +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/specs/tinymovr_1_6_x.yaml +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/specs/tinymovr_2_0_x.yaml +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/specs/tinymovr_2_1_x.yaml +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr/specs/tinymovr_2_3_x.yaml +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr.egg-info/dependency_links.txt +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr.egg-info/entry_points.txt +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr.egg-info/requires.txt +0 -0
- {tinymovr-2.3.3 → tinymovr-2.4.0}/tinymovr.egg-info/top_level.txt +0 -0
|
@@ -40,7 +40,7 @@ class TestAMT22(TMTestCase):
|
|
|
40
40
|
WARNING: This will perform one NVRAM write and two erase cycles.
|
|
41
41
|
"""
|
|
42
42
|
self.check_state(0)
|
|
43
|
-
self.
|
|
43
|
+
self.erase_config()
|
|
44
44
|
time.sleep(0.2)
|
|
45
45
|
|
|
46
46
|
self.configure_sensors(self.tm.sensors.setup.external_spi.type.AMT22)
|
|
@@ -70,7 +70,7 @@ class TestAMT22(TMTestCase):
|
|
|
70
70
|
|
|
71
71
|
time.sleep(0.1)
|
|
72
72
|
|
|
73
|
-
self.
|
|
73
|
+
self.save_config()
|
|
74
74
|
|
|
75
75
|
time.sleep(0.2)
|
|
76
76
|
|
|
@@ -89,7 +89,7 @@ class TestAMT22(TMTestCase):
|
|
|
89
89
|
delta=200 * tick,
|
|
90
90
|
)
|
|
91
91
|
|
|
92
|
-
self.
|
|
92
|
+
self.erase_config()
|
|
93
93
|
time.sleep(0.2)
|
|
94
94
|
|
|
95
95
|
@pytest.mark.sensor_amt22
|
|
@@ -100,7 +100,7 @@ class TestAMT22(TMTestCase):
|
|
|
100
100
|
to an onboard connection, and verify if the position control maintains accuracy.
|
|
101
101
|
"""
|
|
102
102
|
self.check_state(0)
|
|
103
|
-
self.
|
|
103
|
+
self.erase_config()
|
|
104
104
|
time.sleep(0.2)
|
|
105
105
|
|
|
106
106
|
# Initially configure with external SPI sensor
|
|
@@ -151,7 +151,7 @@ class TestAMT22(TMTestCase):
|
|
|
151
151
|
delta=2000 * tick,
|
|
152
152
|
)
|
|
153
153
|
|
|
154
|
-
self.
|
|
154
|
+
self.erase_config()
|
|
155
155
|
time.sleep(0.2)
|
|
156
156
|
|
|
157
157
|
|
|
@@ -40,7 +40,7 @@ class TestAS5047(TMTestCase):
|
|
|
40
40
|
WARNING: This will perform one NVRAM write and two erase cycles.
|
|
41
41
|
"""
|
|
42
42
|
self.check_state(0)
|
|
43
|
-
self.
|
|
43
|
+
self.erase_config()
|
|
44
44
|
time.sleep(0.2)
|
|
45
45
|
|
|
46
46
|
self.configure_sensors(self.tm.sensors.setup.external_spi.type.AS5047)
|
|
@@ -69,7 +69,7 @@ class TestAS5047(TMTestCase):
|
|
|
69
69
|
|
|
70
70
|
time.sleep(0.1)
|
|
71
71
|
|
|
72
|
-
self.
|
|
72
|
+
self.save_config()
|
|
73
73
|
|
|
74
74
|
time.sleep(0.2)
|
|
75
75
|
|
|
@@ -88,7 +88,7 @@ class TestAS5047(TMTestCase):
|
|
|
88
88
|
delta=2000 * tick,
|
|
89
89
|
)
|
|
90
90
|
|
|
91
|
-
self.
|
|
91
|
+
self.erase_config()
|
|
92
92
|
time.sleep(0.2)
|
|
93
93
|
|
|
94
94
|
@pytest.mark.sensor_as5047
|
|
@@ -99,7 +99,7 @@ class TestAS5047(TMTestCase):
|
|
|
99
99
|
to an onboard connection, and verify if the position control maintains accuracy.
|
|
100
100
|
"""
|
|
101
101
|
self.check_state(0)
|
|
102
|
-
self.
|
|
102
|
+
self.erase_config()
|
|
103
103
|
time.sleep(0.2)
|
|
104
104
|
|
|
105
105
|
# Initially configure with external SPI sensor
|
|
@@ -150,7 +150,7 @@ class TestAS5047(TMTestCase):
|
|
|
150
150
|
delta=2000 * tick,
|
|
151
151
|
)
|
|
152
152
|
|
|
153
|
-
self.
|
|
153
|
+
self.erase_config()
|
|
154
154
|
time.sleep(0.2)
|
|
155
155
|
|
|
156
156
|
@pytest.mark.sensor_as5047
|
|
@@ -160,7 +160,7 @@ class TestAS5047(TMTestCase):
|
|
|
160
160
|
different baud rates.
|
|
161
161
|
"""
|
|
162
162
|
self.check_state(0)
|
|
163
|
-
self.
|
|
163
|
+
self.erase_config()
|
|
164
164
|
time.sleep(0.2)
|
|
165
165
|
|
|
166
166
|
self.configure_sensors(self.tm.sensors.setup.external_spi.type.AS5047)
|
|
@@ -182,21 +182,27 @@ class TestBoard(TMTestCase):
|
|
|
182
182
|
self.check_state(2)
|
|
183
183
|
|
|
184
184
|
if hw_rev > 20:
|
|
185
|
-
self.tm.controller.velocity.limit =
|
|
186
|
-
|
|
185
|
+
self.tm.controller.velocity.limit = 80000 * ticks / s
|
|
186
|
+
self.tm.controller.velocity.deadband = 500
|
|
187
|
+
tick_range = 8000
|
|
188
|
+
settle_time = 0.50
|
|
189
|
+
tolerance = 3000
|
|
187
190
|
else:
|
|
188
|
-
self.tm.controller.velocity.limit =
|
|
189
|
-
|
|
191
|
+
self.tm.controller.velocity.limit = 120000 * ticks / s
|
|
192
|
+
self.tm.controller.velocity.deadband = 1000
|
|
193
|
+
tick_range = 18000
|
|
194
|
+
settle_time = 0.50
|
|
195
|
+
tolerance = 3000
|
|
190
196
|
|
|
191
197
|
for _ in range(15):
|
|
192
198
|
new_pos = random.uniform(-tick_range, tick_range)
|
|
193
199
|
self.tm.controller.position.setpoint = new_pos * ticks
|
|
194
|
-
|
|
195
|
-
time.sleep(
|
|
200
|
+
|
|
201
|
+
time.sleep(settle_time)
|
|
196
202
|
self.assertAlmostEqual(
|
|
197
203
|
self.tm.sensors.user_frame.position_estimate,
|
|
198
204
|
self.tm.controller.position.setpoint,
|
|
199
|
-
delta=
|
|
205
|
+
delta=tolerance * ticks,
|
|
200
206
|
)
|
|
201
207
|
|
|
202
208
|
@pytest.mark.hitl_default
|
|
@@ -43,7 +43,7 @@ class TestHall(TMTestCase):
|
|
|
43
43
|
WARNING: This will perform one NVRAM write and two erase cycles.
|
|
44
44
|
"""
|
|
45
45
|
self.check_state(0)
|
|
46
|
-
self.
|
|
46
|
+
self.erase_config()
|
|
47
47
|
time.sleep(0.2)
|
|
48
48
|
|
|
49
49
|
self.tm.sensors.select.position_sensor.connection = self.tm.sensors.select.position_sensor.connection.HALL
|
|
@@ -78,7 +78,7 @@ class TestHall(TMTestCase):
|
|
|
78
78
|
|
|
79
79
|
time.sleep(0.1)
|
|
80
80
|
|
|
81
|
-
self.
|
|
81
|
+
self.save_config()
|
|
82
82
|
|
|
83
83
|
time.sleep(0.2)
|
|
84
84
|
|
|
@@ -97,7 +97,7 @@ class TestHall(TMTestCase):
|
|
|
97
97
|
delta=30000 * tick,
|
|
98
98
|
)
|
|
99
99
|
|
|
100
|
-
self.
|
|
100
|
+
self.erase_config()
|
|
101
101
|
time.sleep(0.2)
|
|
102
102
|
|
|
103
103
|
|