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.
Files changed (66) hide show
  1. {tinymovr-3.2.0 → tinymovr-3.2.1}/PKG-INFO +1 -1
  2. {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_board.py +8 -5
  3. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr.egg-info/PKG-INFO +1 -1
  4. {tinymovr-3.2.0 → tinymovr-3.2.1}/MANIFEST.in +0 -0
  5. {tinymovr-3.2.0 → tinymovr-3.2.1}/README.md +0 -0
  6. {tinymovr-3.2.0 → tinymovr-3.2.1}/pyproject.toml +0 -0
  7. {tinymovr-3.2.0 → tinymovr-3.2.1}/setup.cfg +0 -0
  8. {tinymovr-3.2.0 → tinymovr-3.2.1}/setup.py +0 -0
  9. {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_amt22.py +0 -0
  10. {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_as5047.py +0 -0
  11. {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_dfu.py +0 -0
  12. {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_differential.py +0 -0
  13. {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_export_import.py +0 -0
  14. {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_hall.py +0 -0
  15. {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_homing.py +0 -0
  16. {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_nvm.py +0 -0
  17. {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_rates.py +0 -0
  18. {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_simulation.py +0 -0
  19. {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_traj_planner.py +0 -0
  20. {tinymovr-3.2.0 → tinymovr-3.2.1}/tests/test_watchdog.py +0 -0
  21. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/__init__.py +0 -0
  22. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/bus_manager.py +0 -0
  23. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/bus_router.py +0 -0
  24. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/channel.py +0 -0
  25. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/cli.py +0 -0
  26. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/codec/__init__.py +0 -0
  27. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/codec/codec.py +0 -0
  28. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/config/__init__.py +0 -0
  29. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/config/config.py +0 -0
  30. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/constants.py +0 -0
  31. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/device_discovery.py +0 -0
  32. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/dfu.py +0 -0
  33. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/gui/__init__.py +0 -0
  34. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/gui/gui.py +0 -0
  35. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/gui/helpers.py +0 -0
  36. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/gui/widgets.py +0 -0
  37. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/gui/window.py +0 -0
  38. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/gui/worker.py +0 -0
  39. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/resources/icons/app_icon.png +0 -0
  40. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/resources/icons/call.png +0 -0
  41. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/resources/icons/call@2x.png +0 -0
  42. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/resources/icons/call_dark.png +0 -0
  43. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/resources/icons/call_dark@2x.png +0 -0
  44. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/resources/icons/empty.png +0 -0
  45. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/resources/icons/empty@2x.png +0 -0
  46. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/resources/icons/empty_dark.png +0 -0
  47. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/resources/icons/empty_dark@2x.png +0 -0
  48. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/dfu_1_0_x.yaml +0 -0
  49. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/dfu_1_1_x.yaml +0 -0
  50. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_1_3_x.yaml +0 -0
  51. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_1_4_x.yaml +0 -0
  52. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_1_5_x.yaml +0 -0
  53. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_1_6_x.yaml +0 -0
  54. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_2_0_x.yaml +0 -0
  55. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_2_1_x.yaml +0 -0
  56. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_2_3_x.yaml +0 -0
  57. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_2_4_x.yaml +0 -0
  58. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_2_5_x.yaml +0 -0
  59. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_2_6_x.yaml +0 -0
  60. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_3_0_x.yaml +0 -0
  61. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr/specs/tinymovr_3_1_x.yaml +0 -0
  62. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr.egg-info/SOURCES.txt +0 -0
  63. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr.egg-info/dependency_links.txt +0 -0
  64. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr.egg-info/entry_points.txt +0 -0
  65. {tinymovr-3.2.0 → tinymovr-3.2.1}/tinymovr.egg-info/requires.txt +0 -0
  66. {tinymovr-3.2.0 → tinymovr-3.2.1}/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.2.0
3
+ Version: 3.2.1
4
4
  Summary: Tinymovr Studio
5
5
  Home-page: https://github.com/yconst/Tinymovr
6
6
  Author: MotionLayer P.C.
@@ -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.controller.position.setpoint = 0
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
- self.tm.controller.position.setpoint = i * 3000 * ticks
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
- i * 3000 * ticks, self.tm.sensors.user_frame.position_estimate, delta=1000 * ticks
122
+ target_position, self.tm.sensors.user_frame.position_estimate, delta=1000 * ticks
120
123
  )
121
124
 
122
125
  @pytest.mark.hitl_default
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tinymovr
3
- Version: 3.2.0
3
+ Version: 3.2.1
4
4
  Summary: Tinymovr Studio
5
5
  Home-page: https://github.com/yconst/Tinymovr
6
6
  Author: MotionLayer P.C.
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