tinymovr 3.0.0__tar.gz → 3.2.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.
Files changed (66) hide show
  1. {tinymovr-3.0.0/tinymovr.egg-info → tinymovr-3.2.0}/PKG-INFO +1 -1
  2. {tinymovr-3.0.0 → tinymovr-3.2.0}/pyproject.toml +1 -0
  3. tinymovr-3.2.0/tests/test_differential.py +93 -0
  4. tinymovr-3.2.0/tinymovr/specs/tinymovr_3_1_x.yaml +656 -0
  5. {tinymovr-3.0.0 → tinymovr-3.2.0/tinymovr.egg-info}/PKG-INFO +1 -1
  6. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr.egg-info/SOURCES.txt +3 -1
  7. {tinymovr-3.0.0 → tinymovr-3.2.0}/MANIFEST.in +0 -0
  8. {tinymovr-3.0.0 → tinymovr-3.2.0}/README.md +0 -0
  9. {tinymovr-3.0.0 → tinymovr-3.2.0}/setup.cfg +0 -0
  10. {tinymovr-3.0.0 → tinymovr-3.2.0}/setup.py +0 -0
  11. {tinymovr-3.0.0 → tinymovr-3.2.0}/tests/test_amt22.py +0 -0
  12. {tinymovr-3.0.0 → tinymovr-3.2.0}/tests/test_as5047.py +0 -0
  13. {tinymovr-3.0.0 → tinymovr-3.2.0}/tests/test_board.py +0 -0
  14. {tinymovr-3.0.0 → tinymovr-3.2.0}/tests/test_dfu.py +0 -0
  15. {tinymovr-3.0.0 → tinymovr-3.2.0}/tests/test_export_import.py +0 -0
  16. {tinymovr-3.0.0 → tinymovr-3.2.0}/tests/test_hall.py +0 -0
  17. {tinymovr-3.0.0 → tinymovr-3.2.0}/tests/test_homing.py +0 -0
  18. {tinymovr-3.0.0 → tinymovr-3.2.0}/tests/test_nvm.py +0 -0
  19. {tinymovr-3.0.0 → tinymovr-3.2.0}/tests/test_rates.py +0 -0
  20. {tinymovr-3.0.0 → tinymovr-3.2.0}/tests/test_simulation.py +0 -0
  21. {tinymovr-3.0.0 → tinymovr-3.2.0}/tests/test_traj_planner.py +0 -0
  22. {tinymovr-3.0.0 → tinymovr-3.2.0}/tests/test_watchdog.py +0 -0
  23. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/__init__.py +0 -0
  24. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/bus_manager.py +0 -0
  25. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/bus_router.py +0 -0
  26. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/channel.py +0 -0
  27. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/cli.py +0 -0
  28. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/codec/__init__.py +0 -0
  29. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/codec/codec.py +0 -0
  30. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/config/__init__.py +0 -0
  31. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/config/config.py +0 -0
  32. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/constants.py +0 -0
  33. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/device_discovery.py +0 -0
  34. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/dfu.py +0 -0
  35. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/gui/__init__.py +0 -0
  36. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/gui/gui.py +0 -0
  37. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/gui/helpers.py +0 -0
  38. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/gui/widgets.py +0 -0
  39. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/gui/window.py +0 -0
  40. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/gui/worker.py +0 -0
  41. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/resources/icons/app_icon.png +0 -0
  42. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/resources/icons/call.png +0 -0
  43. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/resources/icons/call@2x.png +0 -0
  44. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/resources/icons/call_dark.png +0 -0
  45. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/resources/icons/call_dark@2x.png +0 -0
  46. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/resources/icons/empty.png +0 -0
  47. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/resources/icons/empty@2x.png +0 -0
  48. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/resources/icons/empty_dark.png +0 -0
  49. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/resources/icons/empty_dark@2x.png +0 -0
  50. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/specs/dfu_1_0_x.yaml +0 -0
  51. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/specs/dfu_1_1_x.yaml +0 -0
  52. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/specs/tinymovr_1_3_x.yaml +0 -0
  53. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/specs/tinymovr_1_4_x.yaml +0 -0
  54. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/specs/tinymovr_1_5_x.yaml +0 -0
  55. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/specs/tinymovr_1_6_x.yaml +0 -0
  56. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/specs/tinymovr_2_0_x.yaml +0 -0
  57. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/specs/tinymovr_2_1_x.yaml +0 -0
  58. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/specs/tinymovr_2_3_x.yaml +0 -0
  59. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/specs/tinymovr_2_4_x.yaml +0 -0
  60. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/specs/tinymovr_2_5_x.yaml +0 -0
  61. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/specs/tinymovr_2_6_x.yaml +0 -0
  62. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr/specs/tinymovr_3_0_x.yaml +0 -0
  63. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr.egg-info/dependency_links.txt +0 -0
  64. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr.egg-info/entry_points.txt +0 -0
  65. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr.egg-info/requires.txt +0 -0
  66. {tinymovr-3.0.0 → tinymovr-3.2.0}/tinymovr.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tinymovr
3
- Version: 3.0.0
3
+ Version: 3.2.0
4
4
  Summary: Tinymovr Studio
5
5
  Home-page: https://github.com/yconst/Tinymovr
6
6
  Author: MotionLayer P.C.
@@ -9,6 +9,7 @@ markers = [
9
9
  "sensor_amt22: marks tests that need the amt22 sensor",
10
10
  "sensor_as5047: marks tests that need the as5047 sensor",
11
11
  "sensor_hall: marks tests that need a hall effect sensored motor",
12
+ "differential: marks tests that need a differential (vernier) dual-sensor setup",
12
13
  "eol: marks tests for end-of-line testing",
13
14
  "dfu: marks tests for dfu testing",
14
15
  ]
@@ -0,0 +1,93 @@
1
+ """
2
+ Tinymovr Differential (Vernier) Mode Tests
3
+ Copyright 2020-2026 MotionLayer P.C.
4
+
5
+ Tests the differential transform-init mode, where the absolute multiturn shaft
6
+ position is recovered from two geared sensors (vernier/nonius) during
7
+ calibration and re-seeded on every reset.
8
+
9
+ This program is free software: you can redistribute it and/or modify it under
10
+ the terms of the GNU General Public License as published by the Free Software
11
+ Foundation, either version 3 of the License, or (at your option) any later
12
+ version.
13
+ This program is distributed in the hope that it will be useful, but WITHOUT
14
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15
+ FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16
+ You should have received a copy of the GNU General Public License along with
17
+ this program. If not, see <http://www.gnu.org/licenses/>.
18
+ """
19
+
20
+ import time
21
+
22
+ from avlos.unit_field import get_registry
23
+
24
+ import unittest
25
+ import pytest
26
+ from tests import TMTestCase
27
+
28
+ ureg = get_registry()
29
+ tick = ureg.ticks
30
+ tsleep = 1.50
31
+
32
+
33
+ class TestDifferential(TMTestCase):
34
+
35
+ @pytest.mark.differential
36
+ def test_multiturn_position_retained_after_reset(self):
37
+ """The differential transform must recover the same absolute multiturn
38
+ shaft position after a reset, with no offset and no full-turn slip.
39
+ """
40
+ self.check_state(0)
41
+ self.erase_config()
42
+ time.sleep(0.2)
43
+
44
+ # Vernier setup: the onboard sensor is used for both commutation and
45
+ # position, and the geared secondary (MA7XX) on external SPI is read
46
+ # during calibration/seed.
47
+ self.configure_sensors(self.tm.sensors.setup.external_spi.type.MA7XX)
48
+ self.select_sensors(
49
+ self.tm.sensors.select.commutation_sensor.connection.ONBOARD,
50
+ self.tm.sensors.select.position_sensor.connection.ONBOARD,
51
+ )
52
+ self.tm.sensors.select.transform_init.mode = (
53
+ self.tm.sensors.select.transform_init.mode.DIFFERENTIAL
54
+ )
55
+ time.sleep(0.2)
56
+
57
+ self.try_calibrate()
58
+
59
+ self.tm.controller.velocity.p_gain = 1e-5
60
+
61
+ self.tm.controller.position_mode()
62
+ self.check_state(2)
63
+
64
+ # Stay within a single output-shaft turn (the vernier resolves only one
65
+ # turn). Sweep mid-turn, then near a full turn, and verify tracking.
66
+ for target in (4000 * tick, 8000 * tick):
67
+ self.tm.controller.position.setpoint = target
68
+ time.sleep(tsleep)
69
+ self.assertAlmostEqual(
70
+ self.tm.sensors.user_frame.position_estimate,
71
+ target,
72
+ delta=2000 * tick,
73
+ )
74
+
75
+ pos_before = self.tm.sensors.user_frame.position_estimate
76
+
77
+ self.tm.controller.idle()
78
+ time.sleep(0.1)
79
+ self.save_config()
80
+ time.sleep(0.2)
81
+
82
+ # After reset the origin is re-seeded purely from the two sensors.
83
+ self.reset_and_wait()
84
+
85
+ pos_after = self.tm.sensors.user_frame.position_estimate
86
+ self.assertAlmostEqual(pos_after, pos_before, delta=500 * tick)
87
+
88
+ self.erase_config()
89
+ time.sleep(0.2)
90
+
91
+
92
+ if __name__ == "__main__":
93
+ unittest.main()
@@ -0,0 +1,656 @@
1
+
2
+ name: tm
3
+ remote_attributes:
4
+ - name: protocol_hash
5
+ dtype: uint32
6
+ getter_name: _avlos_get_proto_hash
7
+ summary: The Avlos protocol hash.
8
+ - name: uid
9
+ dtype: uint32
10
+ getter_name: system_get_uid
11
+ summary: The unique device ID, unique to each PAC55xx chip produced.
12
+ - name: fw_version
13
+ dtype: string
14
+ getter_name: system_get_fw_version_string
15
+ summary: The firmware version.
16
+ - name: hw_revision
17
+ dtype: uint32
18
+ getter_name: system_get_hw_revision
19
+ summary: The hardware revision.
20
+ - name: Vbus
21
+ dtype: float
22
+ unit: volt
23
+ meta: {dynamic: True}
24
+ getter_name: system_get_Vbus
25
+ summary: The measured bus voltage.
26
+ - name: Ibus
27
+ dtype: float
28
+ unit: ampere
29
+ meta: {dynamic: True}
30
+ getter_name: controller_get_Ibus_est
31
+ summary: The estimated bus current. Only estimates current drawn by motor.
32
+ - name: power
33
+ dtype: float
34
+ unit: watt
35
+ meta: {dynamic: True}
36
+ getter_name: controller_get_power_est
37
+ summary: The estimated power. Only estimates power drawn by motor.
38
+ - name: temp
39
+ dtype: float
40
+ unit: degC
41
+ meta: {dynamic: True}
42
+ getter_name: ADC_get_mcu_temp
43
+ summary: The internal temperature of the PAC55xx MCU.
44
+ - name: calibrated
45
+ dtype: bool
46
+ meta: {dynamic: True}
47
+ getter_name: system_get_calibrated
48
+ summary: Whether the system has been calibrated.
49
+ - name: errors
50
+ flags: [UNDERVOLTAGE]
51
+ meta: {dynamic: True}
52
+ getter_name: system_get_errors
53
+ summary: Any system errors, as a bitmask
54
+ - name: warnings
55
+ flags: [DRIVER_FAULT, CHARGE_PUMP_FAULT_STAT, CHARGE_PUMP_FAULT, DRV10_DISABLE, DRV32_DISABLE, DRV54_DISABLE]
56
+ meta: {dynamic: True}
57
+ getter_name: system_get_warnings
58
+ summary: Any system warnings, as a bitmask
59
+ - name: save_config
60
+ summary: Save configuration to non-volatile memory.
61
+ caller_name: nvm_save_config
62
+ dtype: void
63
+ arguments: []
64
+ - name: erase_config
65
+ summary: Erase the config stored in non-volatile memory and reset the device.
66
+ caller_name: nvm_erase_and_reset
67
+ dtype: void
68
+ arguments: []
69
+ meta: {reload_data: True}
70
+ - name: nvm
71
+ remote_attributes:
72
+ - name: num_slots
73
+ summary: Number of wear leveling slots (calculated from config size).
74
+ getter_name: nvm_wl_get_num_slots
75
+ dtype: uint8
76
+ - name: current_slot
77
+ summary: Current active slot (0 to num_slots-1).
78
+ getter_name: nvm_wl_get_current_slot
79
+ dtype: uint8
80
+ - name: write_count
81
+ summary: Total writes since first use (sequence number).
82
+ getter_name: nvm_wl_get_write_count
83
+ dtype: uint32
84
+ - name: reset
85
+ summary: Reset the device.
86
+ caller_name: system_reset
87
+ dtype: void
88
+ arguments: []
89
+ meta: {reload_data: True}
90
+ - name: enter_dfu
91
+ summary: Enter DFU mode.
92
+ caller_name: system_enter_dfu
93
+ dtype: void
94
+ arguments: []
95
+ meta: {reload_data: True}
96
+ - name: config_size
97
+ summary: Size (in bytes) of the configuration object.
98
+ getter_name: system_get_config_size
99
+ dtype: uint32
100
+ - name: scheduler
101
+ remote_attributes:
102
+ - name: load
103
+ summary: Processor load in ticks per PWM cycle.
104
+ getter_name: scheduler_get_load
105
+ meta: {dynamic: True}
106
+ dtype: uint32
107
+ - name: warnings
108
+ flags: [CONTROL_BLOCK_REENTERED]
109
+ meta: {dynamic: True}
110
+ getter_name: scheduler_get_warnings
111
+ summary: Any scheduler warnings, as a bitmask
112
+ - name: controller
113
+ remote_attributes:
114
+ - name: state
115
+ options: [IDLE, CALIBRATE, CL_CONTROL]
116
+ meta: {dynamic: True}
117
+ getter_name: controller_get_state
118
+ setter_name: controller_set_state
119
+ summary: The state of the controller.
120
+ - name: mode
121
+ options: [CURRENT, VELOCITY, POSITION, TRAJECTORY, HOMING]
122
+ meta: {dynamic: True}
123
+ getter_name: controller_get_mode
124
+ setter_name: controller_set_mode
125
+ summary: The control mode of the controller.
126
+ - name: warnings
127
+ meta: {dynamic: True}
128
+ flags: [VELOCITY_LIMITED, CURRENT_LIMITED, MODULATION_LIMITED]
129
+ getter_name: controller_get_warnings
130
+ summary: Any controller warnings, as a bitmask
131
+ - name: errors
132
+ meta: {dynamic: True}
133
+ flags: [CURRENT_LIMIT_EXCEEDED, PRE_CL_I_SD_EXCEEDED]
134
+ getter_name: controller_get_errors
135
+ summary: Any controller errors, as a bitmask
136
+ - name: position
137
+ remote_attributes:
138
+ - name: setpoint
139
+ dtype: float
140
+ unit: tick
141
+ meta: {jog_step: 100}
142
+ getter_name: controller_get_pos_setpoint_user_frame
143
+ setter_name: controller_set_pos_setpoint_user_frame
144
+ summary: The position setpoint in the user reference frame.
145
+ - name: p_gain
146
+ dtype: float
147
+ meta: {export: True}
148
+ getter_name: controller_get_pos_gain
149
+ setter_name: controller_set_pos_gain
150
+ summary: The proportional gain of the position controller.
151
+ - name: velocity
152
+ remote_attributes:
153
+ - name: setpoint
154
+ dtype: float
155
+ unit: tick/sec
156
+ meta: {jog_step: 200}
157
+ getter_name: controller_get_vel_setpoint_user_frame
158
+ setter_name: controller_set_vel_setpoint_user_frame
159
+ summary: The velocity setpoint in the user reference frame.
160
+ - name: limit
161
+ dtype: float
162
+ unit: tick/sec
163
+ meta: {export: True}
164
+ getter_name: controller_get_vel_limit
165
+ setter_name: controller_set_vel_limit
166
+ summary: The velocity limit.
167
+ - name: p_gain
168
+ dtype: float
169
+ meta: {export: True}
170
+ getter_name: controller_get_vel_gain
171
+ setter_name: controller_set_vel_gain
172
+ summary: The proportional gain of the velocity controller.
173
+ - name: i_gain
174
+ dtype: float
175
+ meta: {export: True}
176
+ getter_name: controller_get_vel_integral_gain
177
+ setter_name: controller_set_vel_integral_gain
178
+ summary: The integral gain of the velocity controller.
179
+ - name: deadband
180
+ dtype: float
181
+ unit: tick
182
+ meta: {export: True}
183
+ getter_name: controller_get_vel_integral_deadband
184
+ setter_name: controller_set_vel_integral_deadband
185
+ rst_target: integrator-deadband
186
+ summary: The deadband of the velocity integrator. A region around the position setpoint where the velocity integrator is not updated.
187
+ - name: increment
188
+ dtype: float
189
+ meta: {export: True}
190
+ getter_name: controller_get_vel_increment
191
+ setter_name: controller_set_vel_increment
192
+ summary: Max velocity setpoint increment (ramping) rate. Set to 0 to disable.
193
+ - name: current
194
+ remote_attributes:
195
+ - name: Iq_setpoint
196
+ dtype: float
197
+ unit: ampere
198
+ meta: {jog_step: 0.005}
199
+ getter_name: controller_get_Iq_setpoint_user_frame
200
+ setter_name: controller_set_Iq_setpoint_user_frame
201
+ summary: The Iq setpoint in the user reference frame.
202
+ - name: Id_setpoint
203
+ dtype: float
204
+ unit: ampere
205
+ meta: {dynamic: True}
206
+ getter_name: controller_get_Id_setpoint_user_frame
207
+ summary: The Id setpoint in the user reference frame.
208
+ - name: Iq_limit
209
+ dtype: float
210
+ unit: ampere
211
+ meta: {export: True}
212
+ getter_name: controller_get_Iq_limit
213
+ setter_name: controller_set_Iq_limit
214
+ summary: The Iq limit.
215
+ - name: Iq_estimate
216
+ dtype: float
217
+ unit: ampere
218
+ meta: {dynamic: True}
219
+ getter_name: controller_get_Iq_estimate_user_frame
220
+ summary: The Iq estimate in the user reference frame.
221
+ - name: bandwidth
222
+ dtype: float
223
+ unit: Hz
224
+ meta: {export: True}
225
+ getter_name: controller_get_I_bw
226
+ setter_name: controller_set_I_bw
227
+ summary: The current controller bandwidth.
228
+ - name: Iq_p_gain
229
+ dtype: float
230
+ getter_name: controller_get_Iq_gain
231
+ summary: The current controller proportional gain.
232
+ - name: max_Ibus_regen
233
+ dtype: float
234
+ unit: ampere
235
+ meta: {export: True}
236
+ getter_name: controller_get_max_Ibus_regen
237
+ setter_name: controller_set_max_Ibus_regen
238
+ summary: The max current allowed to be fed back to the power source before flux braking activates.
239
+ - name: max_Ibrake
240
+ dtype: float
241
+ unit: ampere
242
+ meta: {export: True}
243
+ getter_name: controller_get_max_Ibrake
244
+ setter_name: controller_set_max_Ibrake
245
+ summary: The max current allowed to be dumped to the motor windings during flux braking. Set to zero to deactivate flux braking.
246
+ - name: voltage
247
+ remote_attributes:
248
+ - name: Vq_setpoint
249
+ dtype: float
250
+ unit: volt
251
+ meta: {dynamic: True}
252
+ getter_name: controller_get_Vq_setpoint_user_frame
253
+ summary: The Vq setpoint.
254
+ - name: calibrate
255
+ summary: Calibrate the device.
256
+ caller_name: controller_calibrate
257
+ dtype: void
258
+ arguments: []
259
+ - name: idle
260
+ summary: Set idle mode, disabling the driver.
261
+ caller_name: controller_idle
262
+ dtype: void
263
+ arguments: []
264
+ - name: position_mode
265
+ summary: Set position control mode.
266
+ caller_name: controller_position_mode
267
+ dtype: void
268
+ arguments: []
269
+ - name: velocity_mode
270
+ summary: Set velocity control mode.
271
+ caller_name: controller_velocity_mode
272
+ dtype: void
273
+ arguments: []
274
+ - name: current_mode
275
+ summary: Set current control mode.
276
+ caller_name: controller_current_mode
277
+ dtype: void
278
+ arguments: []
279
+ - name: set_pos_vel_setpoints
280
+ summary: Set the position and velocity setpoints in the user reference frame in one go, and retrieve the position estimate
281
+ caller_name: controller_set_pos_vel_setpoints_user_frame
282
+ dtype: float
283
+ arguments:
284
+ - name: pos_setpoint
285
+ dtype: float
286
+ unit: tick
287
+ - name: vel_setpoint
288
+ dtype: float
289
+ unit: tick
290
+ - name: comms
291
+ remote_attributes:
292
+ - name: can
293
+ remote_attributes:
294
+ - name: rate
295
+ dtype: uint32
296
+ meta: {export: True}
297
+ getter_name: CAN_get_kbit_rate
298
+ setter_name: CAN_set_kbit_rate
299
+ rst_target: api-can-rate
300
+ summary: The baud rate of the CAN interface.
301
+ - name: id
302
+ dtype: uint32
303
+ meta: {export: True, reload_data: True}
304
+ getter_name: CAN_get_ID
305
+ setter_name: CAN_set_ID
306
+ summary: The ID of the CAN interface.
307
+ - name: heartbeat
308
+ dtype: bool
309
+ meta: {export: True}
310
+ getter_name: CAN_get_send_heartbeat
311
+ setter_name: CAN_set_send_heartbeat
312
+ summary: Toggle sending of heartbeat messages.
313
+ - name: motor
314
+ remote_attributes:
315
+ - name: R
316
+ dtype: float
317
+ unit: ohm
318
+ meta: {dynamic: True, export: True}
319
+ getter_name: motor_get_phase_resistance
320
+ setter_name: motor_set_phase_resistance
321
+ summary: The motor Resistance value.
322
+ - name: L
323
+ dtype: float
324
+ unit: henry
325
+ meta: {dynamic: True, export: True}
326
+ getter_name: motor_get_phase_inductance
327
+ setter_name: motor_set_phase_inductance
328
+ summary: The motor Inductance value.
329
+ - name: pole_pairs
330
+ dtype: uint8
331
+ meta: {dynamic: True, export: True}
332
+ getter_name: motor_get_pole_pairs
333
+ setter_name: motor_set_pole_pairs
334
+ summary: The motor pole pair count.
335
+ - name: type
336
+ options: [HIGH_CURRENT, GIMBAL]
337
+ meta: {export: True}
338
+ getter_name: motor_get_is_gimbal
339
+ setter_name: motor_set_is_gimbal
340
+ summary: The type of the motor. Either high current or gimbal.
341
+ - name: calibrated
342
+ dtype: bool
343
+ meta: {dynamic: True}
344
+ getter_name: motor_get_calibrated
345
+ summary: Whether the motor has been calibrated.
346
+ - name: I_cal
347
+ dtype: float
348
+ unit: ampere
349
+ meta: {export: True}
350
+ getter_name: motor_get_I_cal
351
+ setter_name: motor_set_I_cal
352
+ summary: The calibration current.
353
+ - name: errors
354
+ flags: [PHASE_RESISTANCE_OUT_OF_RANGE, PHASE_INDUCTANCE_OUT_OF_RANGE, POLE_PAIRS_CALCULATION_DID_NOT_CONVERGE, POLE_PAIRS_OUT_OF_RANGE, ABNORMAL_CALIBRATION_VOLTAGE]
355
+ meta: {dynamic: True}
356
+ getter_name: motor_get_errors
357
+ summary: Any motor/calibration errors, as a bitmask
358
+ - name: sensors
359
+ remote_attributes:
360
+ - name: user_frame
361
+ remote_attributes:
362
+ - name: position_estimate
363
+ dtype: float
364
+ unit: ticks
365
+ meta: {dynamic: True}
366
+ getter_name: user_frame_get_pos_estimate
367
+ summary: The filtered position estimate in the user reference frame.
368
+ - name: velocity_estimate
369
+ dtype: float
370
+ unit: ticks/second
371
+ meta: {dynamic: True}
372
+ getter_name: user_frame_get_vel_estimate
373
+ summary: The filtered velocity estimate in the user reference frame.
374
+ - name: offset
375
+ dtype: float
376
+ unit: ticks
377
+ meta: {export: True}
378
+ getter_name: frame_user_to_position_sensor_get_offset
379
+ setter_name: frame_user_to_position_sensor_set_offset
380
+ summary: The user defined offset.
381
+ - name: multiplier
382
+ dtype: float
383
+ meta: {export: True}
384
+ getter_name: frame_user_to_position_sensor_get_multiplier
385
+ setter_name: frame_user_to_position_sensor_set_multiplier
386
+ summary: The user defined multipler.
387
+ - name: setup
388
+ remote_attributes:
389
+ - name: onboard
390
+ remote_attributes:
391
+ - name: calibrated
392
+ dtype: bool
393
+ meta: {dynamic: True}
394
+ getter_name: sensor_onboard_get_is_calibrated
395
+ summary: Whether the sensor has been calibrated.
396
+ - name: errors
397
+ flags: [CALIBRATION_FAILED, READING_UNSTABLE]
398
+ meta: {dynamic: True}
399
+ getter_name: sensor_onboard_get_errors
400
+ summary: Any sensor errors, as a bitmask
401
+ - name: external_spi
402
+ remote_attributes:
403
+ - name: type
404
+ options: [MA7XX, AS5047, AMT22, MA600]
405
+ meta: {export: True}
406
+ getter_name: sensor_external_spi_get_type_avlos
407
+ setter_name: sensor_external_spi_set_type_avlos
408
+ summary: The type of the external sensor.
409
+ - name: rate
410
+ options: [1_5Mbps, 3Mbps, 6Mbps, 8Mbps, 12Mbps]
411
+ meta: {export: True, dynamic: True}
412
+ getter_name: sensor_external_spi_get_rate_avlos
413
+ setter_name: sensor_external_spi_set_rate_avlos
414
+ summary: The rate of the external sensor.
415
+ - name: calibrated
416
+ dtype: bool
417
+ meta: {dynamic: True}
418
+ getter_name: sensor_external_spi_get_is_calibrated
419
+ summary: Whether the sensor has been calibrated.
420
+ - name: errors
421
+ flags: [CALIBRATION_FAILED, READING_UNSTABLE]
422
+ meta: {dynamic: True}
423
+ getter_name: sensor_external_spi_get_errors
424
+ summary: Any sensor errors, as a bitmask
425
+ - name: hall
426
+ remote_attributes:
427
+ - name: calibrated
428
+ dtype: bool
429
+ meta: {dynamic: True}
430
+ getter_name: sensor_hall_get_is_calibrated
431
+ summary: Whether the sensor has been calibrated.
432
+ - name: errors
433
+ flags: [CALIBRATION_FAILED, READING_UNSTABLE]
434
+ meta: {dynamic: True}
435
+ getter_name: sensor_hall_get_errors
436
+ summary: Any sensor errors, as a bitmask
437
+ - name: select
438
+ remote_attributes:
439
+ - name: position_sensor
440
+ remote_attributes:
441
+ - name: connection
442
+ options: [ONBOARD, EXTERNAL_SPI, HALL]
443
+ meta: {export: True}
444
+ getter_name: position_sensor_get_connection
445
+ setter_name: position_sensor_set_connection
446
+ summary: The position sensor connection. Either ONBOARD, EXTERNAL_SPI or HALL.
447
+ - name: bandwidth
448
+ dtype: float
449
+ unit: Hz
450
+ meta: {export: True}
451
+ getter_name: position_observer_get_bandwidth
452
+ setter_name: position_observer_set_bandwidth
453
+ summary: The position sensor observer bandwidth.
454
+ - name: raw_angle
455
+ dtype: int32
456
+ meta: {dynamic: True}
457
+ getter_name: sensor_position_get_raw_angle
458
+ summary: The raw position sensor angle.
459
+ - name: position_estimate
460
+ dtype: float
461
+ unit: ticks
462
+ meta: {dynamic: True}
463
+ getter_name: position_observer_get_pos_estimate
464
+ summary: The filtered position estimate in the position sensor reference frame.
465
+ - name: velocity_estimate
466
+ dtype: float
467
+ unit: ticks/second
468
+ meta: {dynamic: True}
469
+ getter_name: position_observer_get_vel_estimate
470
+ summary: The filtered velocity estimate in the position sensor reference frame.
471
+ - name: commutation_sensor
472
+ remote_attributes:
473
+ - name: connection
474
+ options: [ONBOARD, EXTERNAL_SPI, HALL]
475
+ meta: {export: True}
476
+ getter_name: commutation_sensor_get_connection
477
+ setter_name: commutation_sensor_set_connection
478
+ summary: The commutation sensor connection. Either ONBOARD, EXTERNAL_SPI or HALL.
479
+ - name: bandwidth
480
+ dtype: float
481
+ unit: Hz
482
+ meta: {export: True}
483
+ getter_name: commutation_observer_get_bandwidth
484
+ setter_name: commutation_observer_set_bandwidth
485
+ summary: The commutation sensor observer bandwidth.
486
+ - name: raw_angle
487
+ dtype: int32
488
+ meta: {dynamic: True}
489
+ getter_name: sensor_commutation_get_raw_angle
490
+ summary: The raw commutation sensor angle.
491
+ - name: position_estimate
492
+ dtype: float
493
+ unit: ticks
494
+ meta: {dynamic: True}
495
+ getter_name: commutation_observer_get_pos_estimate
496
+ summary: The filtered position estimate in the commutation sensor reference frame.
497
+ - name: velocity_estimate
498
+ dtype: float
499
+ unit: ticks/second
500
+ meta: {dynamic: True}
501
+ getter_name: commutation_observer_get_vel_estimate
502
+ summary: The filtered velocity estimate in the commutation sensor reference frame.
503
+ - name: transform_init
504
+ remote_attributes:
505
+ - name: mode
506
+ options: [STANDARD, DIFFERENTIAL]
507
+ meta: {export: True}
508
+ getter_name: transform_init_get_mode_avlos
509
+ setter_name: transform_init_set_mode_avlos
510
+ summary: >
511
+ Position-to-commutation transform initialization mode. STANDARD
512
+ disables dual-sensor transform derivation; the position sensor
513
+ drives closed-loop control. DIFFERENTIAL derives a
514
+ commutation-to-shaft transform from both sensors during
515
+ calibration and origin alignment, then uses commutation-only
516
+ tracking at runtime.
517
+ - name: traj_planner
518
+ remote_attributes:
519
+ - name: max_accel
520
+ dtype: float
521
+ unit: ticks/s
522
+ meta: {export: True}
523
+ getter_name: planner_get_max_accel
524
+ setter_name: planner_set_max_accel
525
+ summary: The max allowed acceleration of the generated trajectory.
526
+ - name: max_decel
527
+ dtype: float
528
+ unit: ticks/second/second
529
+ meta: {export: True}
530
+ getter_name: planner_get_max_decel
531
+ setter_name: planner_set_max_decel
532
+ summary: The max allowed deceleration of the generated trajectory.
533
+ - name: max_vel
534
+ dtype: float
535
+ unit: ticks/second
536
+ meta: {export: True}
537
+ getter_name: planner_get_max_vel
538
+ setter_name: planner_set_max_vel
539
+ summary: The max allowed cruise velocity of the generated trajectory.
540
+ - name: t_accel
541
+ dtype: float
542
+ unit: second
543
+ meta: {export: True}
544
+ getter_name: planner_get_deltat_accel
545
+ setter_name: planner_set_deltat_accel
546
+ summary: In time mode, the acceleration time of the generated trajectory.
547
+ - name: t_decel
548
+ dtype: float
549
+ unit: second
550
+ meta: {export: True}
551
+ getter_name: planner_get_deltat_decel
552
+ setter_name: planner_set_deltat_decel
553
+ summary: In time mode, the deceleration time of the generated trajectory.
554
+ - name: t_total
555
+ dtype: float
556
+ unit: second
557
+ meta: {export: True}
558
+ getter_name: planner_get_deltat_total
559
+ setter_name: planner_set_deltat_total
560
+ summary: In time mode, the total time of the generated trajectory.
561
+ - name: move_to
562
+ summary: Move to target position in the user reference frame respecting velocity and acceleration limits.
563
+ caller_name: planner_move_to_vlimit
564
+ dtype: void
565
+ arguments:
566
+ - name: pos_setpoint
567
+ dtype: float
568
+ unit: tick
569
+ - name: move_to_tlimit
570
+ summary: Move to target position in the user reference frame respecting time limits for each sector.
571
+ caller_name: planner_move_to_tlimit
572
+ dtype: void
573
+ arguments:
574
+ - name: pos_setpoint
575
+ dtype: float
576
+ unit: tick
577
+ - name: errors
578
+ flags: [INVALID_INPUT, VCRUISE_OVER_LIMIT]
579
+ getter_name: planner_get_errors
580
+ summary: Any errors in the trajectory planner, as a bitmask
581
+ - name: homing
582
+ remote_attributes:
583
+ - name: velocity
584
+ dtype: float
585
+ unit: ticks/s
586
+ meta: {export: True}
587
+ getter_name: homing_planner_get_homing_velocity
588
+ setter_name: homing_planner_set_homing_velocity
589
+ summary: The velocity at which the motor performs homing.
590
+ - name: max_homing_t
591
+ dtype: float
592
+ unit: s
593
+ meta: {export: True}
594
+ getter_name: homing_planner_get_max_homing_t
595
+ setter_name: homing_planner_set_max_homing_t
596
+ summary: The maximum time the motor is allowed to travel before homing times out and aborts.
597
+ - name: retract_dist
598
+ dtype: float
599
+ unit: ticks
600
+ meta: {export: True}
601
+ getter_name: homing_planner_get_retract_distance
602
+ setter_name: homing_planner_set_retract_distance
603
+ summary: The retraction distance the motor travels after the endstop has been found.
604
+ - name: warnings
605
+ meta: {dynamic: True}
606
+ flags: [HOMING_TIMEOUT]
607
+ getter_name: homing_planner_get_warnings
608
+ summary: Any homing warnings, as a bitmask
609
+ - name: stall_detect
610
+ remote_attributes:
611
+ - name: velocity
612
+ dtype: float
613
+ unit: ticks/s
614
+ meta: {export: True}
615
+ getter_name: homing_planner_get_max_stall_vel
616
+ setter_name: homing_planner_set_max_stall_vel
617
+ summary: The velocity below which (and together with `stall_detect.delta_pos`) stall detection mode is triggered.
618
+ - name: delta_pos
619
+ dtype: float
620
+ unit: ticks
621
+ meta: {export: True}
622
+ getter_name: homing_planner_get_max_stall_delta_pos
623
+ setter_name: homing_planner_set_max_stall_delta_pos
624
+ summary: The velocity below which (and together with `stall_detect.delta_pos`) stall detection mode is triggered.
625
+ - name: t
626
+ dtype: float
627
+ unit: s
628
+ meta: {export: True}
629
+ getter_name: homing_planner_get_max_stall_t
630
+ setter_name: homing_planner_set_max_stall_t
631
+ summary: The time to remain in stall detection mode before the motor is considered stalled.
632
+ - name: home
633
+ summary: Perform the homing operation.
634
+ caller_name: homing_planner_home
635
+ dtype: void
636
+ arguments: []
637
+ - name: watchdog
638
+ remote_attributes:
639
+ - name: enabled
640
+ dtype: bool
641
+ meta: {export: True}
642
+ getter_name: Watchdog_get_enabled
643
+ setter_name: Watchdog_set_enabled
644
+ summary: Whether the watchdog is enabled or not.
645
+ - name: triggered
646
+ dtype: bool
647
+ meta: {dynamic: True}
648
+ getter_name: Watchdog_triggered
649
+ summary: Whether the watchdog has been triggered or not.
650
+ - name: timeout
651
+ dtype: float
652
+ unit: s
653
+ meta: {export: True}
654
+ getter_name: Watchdog_get_timeout_seconds
655
+ setter_name: Watchdog_set_timeout_seconds
656
+ summary: The watchdog timeout period.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tinymovr
3
- Version: 3.0.0
3
+ Version: 3.2.0
4
4
  Summary: Tinymovr Studio
5
5
  Home-page: https://github.com/yconst/Tinymovr
6
6
  Author: MotionLayer P.C.
@@ -6,6 +6,7 @@ tests/test_amt22.py
6
6
  tests/test_as5047.py
7
7
  tests/test_board.py
8
8
  tests/test_dfu.py
9
+ tests/test_differential.py
9
10
  tests/test_export_import.py
10
11
  tests/test_hall.py
11
12
  tests/test_homing.py
@@ -59,4 +60,5 @@ tinymovr/specs/tinymovr_2_3_x.yaml
59
60
  tinymovr/specs/tinymovr_2_4_x.yaml
60
61
  tinymovr/specs/tinymovr_2_5_x.yaml
61
62
  tinymovr/specs/tinymovr_2_6_x.yaml
62
- tinymovr/specs/tinymovr_3_0_x.yaml
63
+ tinymovr/specs/tinymovr_3_0_x.yaml
64
+ tinymovr/specs/tinymovr_3_1_x.yaml
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