tinymovr 2.2.3a1__tar.gz → 2.3.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.
Files changed (55) hide show
  1. {tinymovr-2.2.3a1/tinymovr.egg-info → tinymovr-2.3.1}/PKG-INFO +1 -1
  2. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tests/test_board.py +35 -9
  3. tinymovr-2.3.1/tinymovr/specs/tinymovr_2_3_x.yaml +622 -0
  4. {tinymovr-2.2.3a1 → tinymovr-2.3.1/tinymovr.egg-info}/PKG-INFO +1 -1
  5. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr.egg-info/SOURCES.txt +2 -1
  6. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/MANIFEST.in +0 -0
  7. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/README.md +0 -0
  8. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/pyproject.toml +0 -0
  9. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/setup.cfg +0 -0
  10. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/setup.py +0 -0
  11. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tests/test_dfu.py +0 -0
  12. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tests/test_homing.py +0 -0
  13. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tests/test_rates.py +0 -0
  14. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tests/test_simulation.py +0 -0
  15. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tests/test_traj_planner.py +0 -0
  16. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tests/test_watchdog.py +0 -0
  17. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/__init__.py +0 -0
  18. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/bus_manager.py +0 -0
  19. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/bus_router.py +0 -0
  20. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/channel.py +0 -0
  21. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/cli.py +0 -0
  22. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/codec/__init__.py +0 -0
  23. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/codec/codec.py +0 -0
  24. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/config/__init__.py +0 -0
  25. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/config/config.py +0 -0
  26. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/constants.py +0 -0
  27. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/device_discovery.py +0 -0
  28. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/dfu.py +0 -0
  29. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/gui/__init__.py +0 -0
  30. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/gui/gui.py +0 -0
  31. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/gui/helpers.py +0 -0
  32. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/gui/widgets.py +0 -0
  33. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/gui/window.py +0 -0
  34. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/gui/worker.py +0 -0
  35. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/resources/icons/app_icon.png +0 -0
  36. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/resources/icons/call.png +0 -0
  37. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/resources/icons/call@2x.png +0 -0
  38. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/resources/icons/call_dark.png +0 -0
  39. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/resources/icons/call_dark@2x.png +0 -0
  40. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/resources/icons/empty.png +0 -0
  41. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/resources/icons/empty@2x.png +0 -0
  42. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/resources/icons/empty_dark.png +0 -0
  43. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/resources/icons/empty_dark@2x.png +0 -0
  44. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/specs/dfu_1_0_x.yaml +0 -0
  45. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/specs/dfu_1_1_x.yaml +0 -0
  46. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/specs/tinymovr_1_3_x.yaml +0 -0
  47. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/specs/tinymovr_1_4_x.yaml +0 -0
  48. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/specs/tinymovr_1_5_x.yaml +0 -0
  49. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/specs/tinymovr_1_6_x.yaml +0 -0
  50. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/specs/tinymovr_2_0_x.yaml +0 -0
  51. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr/specs/tinymovr_2_1_x.yaml +0 -0
  52. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr.egg-info/dependency_links.txt +0 -0
  53. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr.egg-info/entry_points.txt +0 -0
  54. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr.egg-info/requires.txt +0 -0
  55. {tinymovr-2.2.3a1 → tinymovr-2.3.1}/tinymovr.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tinymovr
3
- Version: 2.2.3a1
3
+ Version: 2.3.1
4
4
  Summary: Tinymovr Studio
5
5
  Home-page: https://github.com/yconst/Tinymovr
6
6
  Author: Yannis Chatzikonstantinou
@@ -35,6 +35,7 @@ tsleep = 0.20
35
35
  class TestBoard(TMTestCase):
36
36
 
37
37
  @pytest.mark.hitl_default
38
+ @pytest.mark.hitl_mini
38
39
  def test_a_sensor_readings(self):
39
40
  """
40
41
  Test sensor readings
@@ -47,6 +48,7 @@ class TestBoard(TMTestCase):
47
48
  self.assertLess(st.pstdev(pos_estimates) * ticks, 5 * ticks)
48
49
 
49
50
  @pytest.mark.hitl_default
51
+ @pytest.mark.hitl_mini
50
52
  def test_b_invalid_values(self):
51
53
  """
52
54
  Test rejection of invalid values for limits and gains
@@ -77,6 +79,7 @@ class TestBoard(TMTestCase):
77
79
  time.sleep(2)
78
80
 
79
81
  @pytest.mark.hitl_default
82
+ @pytest.mark.hitl_mini
80
83
  def test_c_calibrate(self):
81
84
  """
82
85
  Test board calibration if not calibrated
@@ -86,6 +89,7 @@ class TestBoard(TMTestCase):
86
89
 
87
90
  @pytest.mark.eol
88
91
  @pytest.mark.hitl_default
92
+ @pytest.mark.hitl_mini
89
93
  def test_d_position_control(self):
90
94
  """
91
95
  Test position control
@@ -97,6 +101,9 @@ class TestBoard(TMTestCase):
97
101
  self.tm.controller.position_mode()
98
102
  self.check_state(2)
99
103
 
104
+ self.tm.controller.position.setpoint = 0
105
+ time.sleep(0.4)
106
+
100
107
  for i in range(5):
101
108
  self.tm.controller.position.setpoint = i * 3000 * ticks
102
109
  if hw_rev > 20:
@@ -108,10 +115,12 @@ class TestBoard(TMTestCase):
108
115
  )
109
116
 
110
117
  @pytest.mark.hitl_default
118
+ @pytest.mark.hitl_mini
111
119
  def test_e_velocity_control(self):
112
120
  """
113
121
  Test velocity control
114
122
  """
123
+ hw_rev = self.tm.hw_revision
115
124
  self.check_state(0)
116
125
  self.try_calibrate()
117
126
  self.tm.controller.velocity_mode()
@@ -119,48 +128,65 @@ class TestBoard(TMTestCase):
119
128
 
120
129
  R = 15
121
130
 
131
+ if hw_rev > 20:
132
+ multiplier = 4000 * ticks / s
133
+ max_delta = 15000 * ticks / s
134
+ else:
135
+ multiplier = 20000 * ticks / s
136
+ max_delta = 30000 * ticks / s
137
+
122
138
  velocity_pairs = []
123
139
 
124
140
  for i in range(R):
125
- target = i * 20000 * ticks / s
141
+ target = i * multiplier
126
142
  self.tm.controller.velocity.setpoint = target
127
143
  time.sleep(tsleep)
128
144
  velocity_pairs.append((target, self.tm.sensors.user_frame.velocity_estimate))
129
145
 
130
146
  for i in range(R):
131
- target = (R - i) * 20000 * ticks / s
147
+ target = (R - i) * multiplier
132
148
  self.tm.controller.velocity.setpoint = target
133
149
  time.sleep(tsleep)
134
150
  velocity_pairs.append((target, self.tm.sensors.user_frame.velocity_estimate))
135
151
 
136
152
  for i in range(R):
137
- target = -i * 20000 * ticks / s
153
+ target = -i * multiplier
138
154
  self.tm.controller.velocity.setpoint = target
139
155
  time.sleep(tsleep)
140
156
  velocity_pairs.append((target, self.tm.sensors.user_frame.velocity_estimate))
141
157
 
142
158
  for i in range(R):
143
- target = (i - R) * 20000 * ticks / s
159
+ target = (i - R) * multiplier
144
160
  self.tm.controller.velocity.setpoint = target
145
161
  time.sleep(tsleep)
146
162
  velocity_pairs.append((target, self.tm.sensors.user_frame.velocity_estimate))
147
163
 
148
164
  for target, estimate in velocity_pairs:
149
- self.assertAlmostEqual(target, estimate, delta=30000 * ticks / s)
165
+ self.assertAlmostEqual(target, estimate, delta=max_delta)
150
166
 
151
167
  @pytest.mark.hitl_default
168
+ @pytest.mark.hitl_mini
152
169
  def test_f_random_pos_control(self):
153
170
  """
154
171
  Test random positions
155
172
  """
173
+ hw_rev = self.tm.hw_revision
156
174
  self.check_state(0)
157
175
  self.try_calibrate()
158
176
  self.tm.controller.position_mode()
159
177
  self.check_state(2)
160
178
 
179
+ if hw_rev > 20:
180
+ self.tm.controller.velocity.limit = 100000 * ticks / s
181
+ tick_range = 10000
182
+ else:
183
+ self.tm.controller.velocity.limit = 200000 * ticks / s
184
+ tick_range = 24000
185
+
161
186
  for _ in range(15):
162
- new_pos = random.uniform(-24000, 24000)
187
+ new_pos = random.uniform(-tick_range, tick_range)
163
188
  self.tm.controller.position.setpoint = new_pos * ticks
189
+
164
190
  time.sleep(0.35)
165
191
  self.assertAlmostEqual(
166
192
  self.tm.sensors.user_frame.position_estimate,
@@ -259,11 +285,11 @@ class TestBoard(TMTestCase):
259
285
  self.tm.controller.position_mode()
260
286
  self.check_state(2)
261
287
 
262
- for i in range(10):
263
- self.tm.controller.position.setpoint = i * 1000 * ticks
288
+ for i in range(5):
289
+ self.tm.controller.position.setpoint = i * 2000 * ticks
264
290
  time.sleep(0.3)
265
291
  self.assertAlmostEqual(
266
- i * 1000 * ticks, self.tm.sensors.user_frame.position_estimate, delta=1000 * ticks
292
+ i * 2000 * ticks, self.tm.sensors.user_frame.position_estimate, delta=2000 * ticks
267
293
  )
268
294
 
269
295
  @pytest.mark.hitl_default
@@ -0,0 +1,622 @@
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: reset
71
+ summary: Reset the device.
72
+ caller_name: system_reset
73
+ dtype: void
74
+ arguments: []
75
+ meta: {reload_data: True}
76
+ - name: enter_dfu
77
+ summary: Enter DFU mode.
78
+ caller_name: system_enter_dfu
79
+ dtype: void
80
+ arguments: []
81
+ meta: {reload_data: True}
82
+ - name: config_size
83
+ summary: Size (in bytes) of the configuration object.
84
+ getter_name: system_get_config_size
85
+ dtype: uint32
86
+ - name: scheduler
87
+ remote_attributes:
88
+ - name: load
89
+ summary: Processor load in ticks per PWM cycle.
90
+ getter_name: scheduler_get_load
91
+ meta: {dynamic: True}
92
+ dtype: uint32
93
+ - name: warnings
94
+ flags: [CONTROL_BLOCK_REENTERED]
95
+ meta: {dynamic: True}
96
+ getter_name: scheduler_get_warnings
97
+ summary: Any scheduler warnings, as a bitmask
98
+ - name: controller
99
+ remote_attributes:
100
+ - name: state
101
+ options: [IDLE, CALIBRATE, CL_CONTROL]
102
+ meta: {dynamic: True}
103
+ getter_name: controller_get_state
104
+ setter_name: controller_set_state
105
+ summary: The state of the controller.
106
+ - name: mode
107
+ options: [CURRENT, VELOCITY, POSITION, TRAJECTORY, HOMING]
108
+ meta: {dynamic: True}
109
+ getter_name: controller_get_mode
110
+ setter_name: controller_set_mode
111
+ summary: The control mode of the controller.
112
+ - name: warnings
113
+ meta: {dynamic: True}
114
+ flags: [VELOCITY_LIMITED, CURRENT_LIMITED, MODULATION_LIMITED]
115
+ getter_name: controller_get_warnings
116
+ summary: Any controller warnings, as a bitmask
117
+ - name: errors
118
+ meta: {dynamic: True}
119
+ flags: [CURRENT_LIMIT_EXCEEDED, PRE_CL_I_SD_EXCEEDED]
120
+ getter_name: controller_get_errors
121
+ summary: Any controller errors, as a bitmask
122
+ - name: position
123
+ remote_attributes:
124
+ - name: setpoint
125
+ dtype: float
126
+ unit: tick
127
+ meta: {jog_step: 100}
128
+ getter_name: controller_get_pos_setpoint_user_frame
129
+ setter_name: controller_set_pos_setpoint_user_frame
130
+ summary: The position setpoint in the user reference frame.
131
+ - name: p_gain
132
+ dtype: float
133
+ meta: {export: True}
134
+ getter_name: controller_get_pos_gain
135
+ setter_name: controller_set_pos_gain
136
+ summary: The proportional gain of the position controller.
137
+ - name: velocity
138
+ remote_attributes:
139
+ - name: setpoint
140
+ dtype: float
141
+ unit: tick/sec
142
+ meta: {jog_step: 200}
143
+ getter_name: controller_get_vel_setpoint_user_frame
144
+ setter_name: controller_set_vel_setpoint_user_frame
145
+ summary: The velocity setpoint in the user reference frame.
146
+ - name: limit
147
+ dtype: float
148
+ unit: tick/sec
149
+ meta: {export: True}
150
+ getter_name: controller_get_vel_limit
151
+ setter_name: controller_set_vel_limit
152
+ summary: The velocity limit.
153
+ - name: p_gain
154
+ dtype: float
155
+ meta: {export: True}
156
+ getter_name: controller_get_vel_gain
157
+ setter_name: controller_set_vel_gain
158
+ summary: The proportional gain of the velocity controller.
159
+ - name: i_gain
160
+ dtype: float
161
+ meta: {export: True}
162
+ getter_name: controller_get_vel_integral_gain
163
+ setter_name: controller_set_vel_integral_gain
164
+ summary: The integral gain of the velocity controller.
165
+ - name: deadband
166
+ dtype: float
167
+ unit: tick
168
+ meta: {export: True}
169
+ getter_name: controller_get_vel_integral_deadband
170
+ setter_name: controller_set_vel_integral_deadband
171
+ rst_target: integrator-deadband
172
+ summary: The deadband of the velocity integrator. A region around the position setpoint where the velocity integrator is not updated.
173
+ - name: increment
174
+ dtype: float
175
+ meta: {export: True}
176
+ getter_name: controller_get_vel_increment
177
+ setter_name: controller_set_vel_increment
178
+ summary: Max velocity setpoint increment (ramping) rate. Set to 0 to disable.
179
+ - name: current
180
+ remote_attributes:
181
+ - name: Iq_setpoint
182
+ dtype: float
183
+ unit: ampere
184
+ meta: {jog_step: 0.005}
185
+ getter_name: controller_get_Iq_setpoint_user_frame
186
+ setter_name: controller_set_Iq_setpoint_user_frame
187
+ summary: The Iq setpoint in the user reference frame.
188
+ - name: Id_setpoint
189
+ dtype: float
190
+ unit: ampere
191
+ meta: {dynamic: True}
192
+ getter_name: controller_get_Id_setpoint_user_frame
193
+ summary: The Id setpoint in the user reference frame.
194
+ - name: Iq_limit
195
+ dtype: float
196
+ unit: ampere
197
+ getter_name: controller_get_Iq_limit
198
+ setter_name: controller_set_Iq_limit
199
+ summary: The Iq limit.
200
+ - name: Iq_estimate
201
+ dtype: float
202
+ unit: ampere
203
+ meta: {dynamic: True}
204
+ getter_name: controller_get_Iq_estimate_user_frame
205
+ summary: The Iq estimate in the user reference frame.
206
+ - name: bandwidth
207
+ dtype: float
208
+ unit: Hz
209
+ meta: {export: True}
210
+ getter_name: controller_get_I_bw
211
+ setter_name: controller_set_I_bw
212
+ summary: The current controller bandwidth.
213
+ - name: Iq_p_gain
214
+ dtype: float
215
+ getter_name: controller_get_Iq_gain
216
+ summary: The current controller proportional gain.
217
+ - name: max_Ibus_regen
218
+ dtype: float
219
+ unit: ampere
220
+ getter_name: controller_get_max_Ibus_regen
221
+ setter_name: controller_set_max_Ibus_regen
222
+ summary: The max current allowed to be fed back to the power source before flux braking activates.
223
+ - name: max_Ibrake
224
+ dtype: float
225
+ unit: ampere
226
+ meta: {export: True}
227
+ getter_name: controller_get_max_Ibrake
228
+ setter_name: controller_set_max_Ibrake
229
+ summary: The max current allowed to be dumped to the motor windings during flux braking. Set to zero to deactivate flux braking.
230
+ - name: voltage
231
+ remote_attributes:
232
+ - name: Vq_setpoint
233
+ dtype: float
234
+ unit: volt
235
+ meta: {dynamic: True}
236
+ getter_name: controller_get_Vq_setpoint_user_frame
237
+ summary: The Vq setpoint.
238
+ - name: calibrate
239
+ summary: Calibrate the device.
240
+ caller_name: controller_calibrate
241
+ dtype: void
242
+ arguments: []
243
+ - name: idle
244
+ summary: Set idle mode, disabling the driver.
245
+ caller_name: controller_idle
246
+ dtype: void
247
+ arguments: []
248
+ - name: position_mode
249
+ summary: Set position control mode.
250
+ caller_name: controller_position_mode
251
+ dtype: void
252
+ arguments: []
253
+ - name: velocity_mode
254
+ summary: Set velocity control mode.
255
+ caller_name: controller_velocity_mode
256
+ dtype: void
257
+ arguments: []
258
+ - name: current_mode
259
+ summary: Set current control mode.
260
+ caller_name: controller_current_mode
261
+ dtype: void
262
+ arguments: []
263
+ - name: set_pos_vel_setpoints
264
+ summary: Set the position and velocity setpoints in the user reference frame in one go, and retrieve the position estimate
265
+ caller_name: controller_set_pos_vel_setpoints_user_frame
266
+ dtype: float
267
+ arguments:
268
+ - name: pos_setpoint
269
+ dtype: float
270
+ unit: tick
271
+ - name: vel_setpoint
272
+ dtype: float
273
+ unit: tick
274
+ - name: comms
275
+ remote_attributes:
276
+ - name: can
277
+ remote_attributes:
278
+ - name: rate
279
+ dtype: uint32
280
+ meta: {export: True}
281
+ getter_name: CAN_get_kbit_rate
282
+ setter_name: CAN_set_kbit_rate
283
+ rst_target: api-can-rate
284
+ summary: The baud rate of the CAN interface.
285
+ - name: id
286
+ dtype: uint32
287
+ meta: {export: True, reload_data: True}
288
+ getter_name: CAN_get_ID
289
+ setter_name: CAN_set_ID
290
+ summary: The ID of the CAN interface.
291
+ - name: heartbeat
292
+ dtype: bool
293
+ getter_name: CAN_get_send_heartbeat
294
+ setter_name: CAN_set_send_heartbeat
295
+ summary: Toggle sending of heartbeat messages.
296
+ - name: motor
297
+ remote_attributes:
298
+ - name: R
299
+ dtype: float
300
+ unit: ohm
301
+ meta: {dynamic: True, export: True}
302
+ getter_name: motor_get_phase_resistance
303
+ setter_name: motor_set_phase_resistance
304
+ summary: The motor Resistance value.
305
+ - name: L
306
+ dtype: float
307
+ unit: henry
308
+ meta: {dynamic: True, export: True}
309
+ getter_name: motor_get_phase_inductance
310
+ setter_name: motor_set_phase_inductance
311
+ summary: The motor Inductance value.
312
+ - name: pole_pairs
313
+ dtype: uint8
314
+ meta: {dynamic: True, export: True}
315
+ getter_name: motor_get_pole_pairs
316
+ setter_name: motor_set_pole_pairs
317
+ summary: The motor pole pair count.
318
+ - name: type
319
+ options: [HIGH_CURRENT, GIMBAL]
320
+ meta: {export: True}
321
+ getter_name: motor_get_is_gimbal
322
+ setter_name: motor_set_is_gimbal
323
+ summary: The type of the motor. Either high current or gimbal.
324
+ - name: calibrated
325
+ dtype: bool
326
+ meta: {dynamic: True}
327
+ getter_name: motor_get_calibrated
328
+ summary: Whether the motor has been calibrated.
329
+ - name: I_cal
330
+ dtype: float
331
+ unit: ampere
332
+ meta: {export: True}
333
+ getter_name: motor_get_I_cal
334
+ setter_name: motor_set_I_cal
335
+ summary: The calibration current.
336
+ - name: errors
337
+ 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]
338
+ meta: {dynamic: True}
339
+ getter_name: motor_get_errors
340
+ summary: Any motor/calibration errors, as a bitmask
341
+ - name: sensors
342
+ remote_attributes:
343
+ - name: user_frame
344
+ remote_attributes:
345
+ - name: position_estimate
346
+ dtype: float
347
+ unit: ticks
348
+ meta: {dynamic: True}
349
+ getter_name: user_frame_get_pos_estimate
350
+ summary: The filtered position estimate in the user reference frame.
351
+ - name: velocity_estimate
352
+ dtype: float
353
+ unit: ticks/second
354
+ meta: {dynamic: True}
355
+ getter_name: user_frame_get_vel_estimate
356
+ summary: The filtered velocity estimate in the user reference frame.
357
+ - name: offset
358
+ dtype: float
359
+ unit: ticks
360
+ getter_name: frame_user_to_position_sensor_get_offset
361
+ setter_name: frame_user_to_position_sensor_set_offset
362
+ summary: The user defined offset.
363
+ - name: multiplier
364
+ dtype: float
365
+ getter_name: frame_user_to_position_sensor_get_multiplier
366
+ setter_name: frame_user_to_position_sensor_set_multiplier
367
+ summary: The user defined multipler.
368
+ - name: setup
369
+ remote_attributes:
370
+ - name: onboard
371
+ remote_attributes:
372
+ - name: calibrated
373
+ dtype: bool
374
+ meta: {dynamic: True}
375
+ getter_name: sensor_onboard_get_is_calibrated
376
+ summary: Whether the sensor has been calibrated.
377
+ - name: errors
378
+ flags: [CALIBRATION_FAILED, READING_UNSTABLE]
379
+ meta: {dynamic: True}
380
+ getter_name: sensor_onboard_get_errors
381
+ summary: Any sensor errors, as a bitmask
382
+ - name: external_spi
383
+ remote_attributes:
384
+ - name: type
385
+ options: [MA7XX, AS5047, AMT22]
386
+ meta: {export: True}
387
+ getter_name: sensor_external_spi_get_type_avlos
388
+ setter_name: sensor_external_spi_set_type_avlos
389
+ summary: The type of the external sensor.
390
+ - name: rate
391
+ options: [1_5Mbps, 3Mbps, 6Mbps, 8Mbps, 12Mbps]
392
+ meta: {export: True, dynamic: True}
393
+ getter_name: sensor_external_spi_get_rate_avlos
394
+ setter_name: sensor_external_spi_set_rate_avlos
395
+ summary: The rate of the external sensor.
396
+ - name: calibrated
397
+ dtype: bool
398
+ meta: {dynamic: True}
399
+ getter_name: sensor_external_spi_get_is_calibrated
400
+ summary: Whether the sensor has been calibrated.
401
+ - name: errors
402
+ flags: [CALIBRATION_FAILED, READING_UNSTABLE]
403
+ meta: {dynamic: True}
404
+ getter_name: sensor_external_spi_get_errors
405
+ summary: Any sensor errors, as a bitmask
406
+ - name: hall
407
+ remote_attributes:
408
+ - name: calibrated
409
+ dtype: bool
410
+ meta: {dynamic: True}
411
+ getter_name: sensor_hall_get_is_calibrated
412
+ summary: Whether the sensor has been calibrated.
413
+ - name: errors
414
+ flags: [CALIBRATION_FAILED, READING_UNSTABLE]
415
+ meta: {dynamic: True}
416
+ getter_name: sensor_hall_get_errors
417
+ summary: Any sensor errors, as a bitmask
418
+ - name: select
419
+ remote_attributes:
420
+ - name: position_sensor
421
+ remote_attributes:
422
+ - name: connection
423
+ options: [ONBOARD, EXTERNAL_SPI, HALL]
424
+ meta: {export: True}
425
+ getter_name: position_sensor_get_connection
426
+ setter_name: position_sensor_set_connection
427
+ summary: The position sensor connection. Either ONBOARD, EXTERNAL_SPI or HALL.
428
+ - name: bandwidth
429
+ dtype: float
430
+ unit: Hz
431
+ meta: {export: True}
432
+ getter_name: position_observer_get_bandwidth
433
+ setter_name: position_observer_set_bandwidth
434
+ summary: The position sensor observer bandwidth.
435
+ - name: raw_angle
436
+ dtype: int32
437
+ meta: {dynamic: True}
438
+ getter_name: sensor_position_get_raw_angle
439
+ summary: The raw position sensor angle.
440
+ - name: position_estimate
441
+ dtype: float
442
+ unit: ticks
443
+ meta: {dynamic: True}
444
+ getter_name: position_observer_get_pos_estimate
445
+ summary: The filtered position estimate in the position sensor reference frame.
446
+ - name: velocity_estimate
447
+ dtype: float
448
+ unit: ticks/second
449
+ meta: {dynamic: True}
450
+ getter_name: position_observer_get_vel_estimate
451
+ summary: The filtered velocity estimate in the position sensor reference frame.
452
+ - name: commutation_sensor
453
+ remote_attributes:
454
+ - name: connection
455
+ options: [ONBOARD, EXTERNAL_SPI, HALL]
456
+ meta: {export: True}
457
+ getter_name: commutation_sensor_get_connection
458
+ setter_name: commutation_sensor_set_connection
459
+ summary: The commutation sensor connection. Either ONBOARD, EXTERNAL_SPI or HALL.
460
+ - name: bandwidth
461
+ dtype: float
462
+ unit: Hz
463
+ meta: {export: True}
464
+ getter_name: commutation_observer_get_bandwidth
465
+ setter_name: commutation_observer_set_bandwidth
466
+ summary: The commutation sensor observer bandwidth.
467
+ - name: raw_angle
468
+ dtype: int32
469
+ meta: {dynamic: True}
470
+ getter_name: sensor_commutation_get_raw_angle
471
+ summary: The raw commutation sensor angle.
472
+ - name: position_estimate
473
+ dtype: float
474
+ unit: ticks
475
+ meta: {dynamic: True}
476
+ getter_name: commutation_observer_get_pos_estimate
477
+ summary: The filtered position estimate in the commutation sensor reference frame.
478
+ - name: velocity_estimate
479
+ dtype: float
480
+ unit: ticks/second
481
+ meta: {dynamic: True}
482
+ getter_name: commutation_observer_get_vel_estimate
483
+ summary: The filtered velocity estimate in the commutation sensor reference frame.
484
+ - name: traj_planner
485
+ remote_attributes:
486
+ - name: max_accel
487
+ dtype: float
488
+ unit: ticks/s
489
+ meta: {export: True}
490
+ getter_name: planner_get_max_accel
491
+ setter_name: planner_set_max_accel
492
+ summary: The max allowed acceleration of the generated trajectory.
493
+ - name: max_decel
494
+ dtype: float
495
+ unit: ticks/second/second
496
+ meta: {export: True}
497
+ getter_name: planner_get_max_decel
498
+ setter_name: planner_set_max_decel
499
+ summary: The max allowed deceleration of the generated trajectory.
500
+ - name: max_vel
501
+ dtype: float
502
+ unit: ticks/second
503
+ meta: {export: True}
504
+ getter_name: planner_get_max_vel
505
+ setter_name: planner_set_max_vel
506
+ summary: The max allowed cruise velocity of the generated trajectory.
507
+ - name: t_accel
508
+ dtype: float
509
+ unit: second
510
+ meta: {export: True}
511
+ getter_name: planner_get_deltat_accel
512
+ setter_name: planner_set_deltat_accel
513
+ summary: In time mode, the acceleration time of the generated trajectory.
514
+ - name: t_decel
515
+ dtype: float
516
+ unit: second
517
+ meta: {export: True}
518
+ getter_name: planner_get_deltat_decel
519
+ setter_name: planner_set_deltat_decel
520
+ summary: In time mode, the deceleration time of the generated trajectory.
521
+ - name: t_total
522
+ dtype: float
523
+ unit: second
524
+ meta: {export: True}
525
+ getter_name: planner_get_deltat_total
526
+ setter_name: planner_set_deltat_total
527
+ summary: In time mode, the total time of the generated trajectory.
528
+ - name: move_to
529
+ summary: Move to target position in the user reference frame respecting velocity and acceleration limits.
530
+ caller_name: planner_move_to_vlimit
531
+ dtype: void
532
+ arguments:
533
+ - name: pos_setpoint
534
+ dtype: float
535
+ unit: tick
536
+ - name: move_to_tlimit
537
+ summary: Move to target position in the user reference frame respecting time limits for each sector.
538
+ caller_name: planner_move_to_tlimit
539
+ dtype: void
540
+ arguments:
541
+ - name: pos_setpoint
542
+ dtype: float
543
+ unit: tick
544
+ - name: errors
545
+ flags: [INVALID_INPUT, VCRUISE_OVER_LIMIT]
546
+ getter_name: planner_get_errors
547
+ summary: Any errors in the trajectory planner, as a bitmask
548
+ - name: homing
549
+ remote_attributes:
550
+ - name: velocity
551
+ dtype: float
552
+ unit: ticks/s
553
+ meta: {export: True}
554
+ getter_name: homing_planner_get_homing_velocity
555
+ setter_name: homing_planner_set_homing_velocity
556
+ summary: The velocity at which the motor performs homing.
557
+ - name: max_homing_t
558
+ dtype: float
559
+ unit: s
560
+ meta: {export: True}
561
+ getter_name: homing_planner_get_max_homing_t
562
+ setter_name: homing_planner_set_max_homing_t
563
+ summary: The maximum time the motor is allowed to travel before homing times out and aborts.
564
+ - name: retract_dist
565
+ dtype: float
566
+ unit: ticks
567
+ meta: {export: True}
568
+ getter_name: homing_planner_get_retract_distance
569
+ setter_name: homing_planner_set_retract_distance
570
+ summary: The retraction distance the motor travels after the endstop has been found.
571
+ - name: warnings
572
+ meta: {dynamic: True}
573
+ flags: [HOMING_TIMEOUT]
574
+ getter_name: homing_planner_get_warnings
575
+ summary: Any homing warnings, as a bitmask
576
+ - name: stall_detect
577
+ remote_attributes:
578
+ - name: velocity
579
+ dtype: float
580
+ unit: ticks/s
581
+ meta: {export: True}
582
+ getter_name: homing_planner_get_max_stall_vel
583
+ setter_name: homing_planner_set_max_stall_vel
584
+ summary: The velocity below which (and together with `stall_detect.delta_pos`) stall detection mode is triggered.
585
+ - name: delta_pos
586
+ dtype: float
587
+ unit: ticks
588
+ meta: {export: True}
589
+ getter_name: homing_planner_get_max_stall_delta_pos
590
+ setter_name: homing_planner_set_max_stall_delta_pos
591
+ summary: The velocity below which (and together with `stall_detect.delta_pos`) stall detection mode is triggered.
592
+ - name: t
593
+ dtype: float
594
+ unit: s
595
+ meta: {export: True}
596
+ getter_name: homing_planner_get_max_stall_t
597
+ setter_name: homing_planner_set_max_stall_t
598
+ summary: The time to remain in stall detection mode before the motor is considered stalled.
599
+ - name: home
600
+ summary: Perform the homing operation.
601
+ caller_name: homing_planner_home
602
+ dtype: void
603
+ arguments: []
604
+ - name: watchdog
605
+ remote_attributes:
606
+ - name: enabled
607
+ dtype: bool
608
+ getter_name: Watchdog_get_enabled
609
+ setter_name: Watchdog_set_enabled
610
+ summary: Whether the watchdog is enabled or not.
611
+ - name: triggered
612
+ dtype: bool
613
+ meta: {dynamic: True}
614
+ getter_name: Watchdog_triggered
615
+ summary: Whether the watchdog has been triggered or not.
616
+ - name: timeout
617
+ dtype: float
618
+ unit: s
619
+ meta: {export: True}
620
+ getter_name: Watchdog_get_timeout_seconds
621
+ setter_name: Watchdog_set_timeout_seconds
622
+ summary: The watchdog timeout period.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tinymovr
3
- Version: 2.2.3a1
3
+ Version: 2.3.1
4
4
  Summary: Tinymovr Studio
5
5
  Home-page: https://github.com/yconst/Tinymovr
6
6
  Author: Yannis Chatzikonstantinou
@@ -49,4 +49,5 @@ tinymovr/specs/tinymovr_1_4_x.yaml
49
49
  tinymovr/specs/tinymovr_1_5_x.yaml
50
50
  tinymovr/specs/tinymovr_1_6_x.yaml
51
51
  tinymovr/specs/tinymovr_2_0_x.yaml
52
- tinymovr/specs/tinymovr_2_1_x.yaml
52
+ tinymovr/specs/tinymovr_2_1_x.yaml
53
+ tinymovr/specs/tinymovr_2_3_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