moteus 0.3.70__tar.gz → 0.3.71__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 (28) hide show
  1. {moteus-0.3.70 → moteus-0.3.71}/PKG-INFO +1 -1
  2. {moteus-0.3.70 → moteus-0.3.71}/moteus/moteus_tool.py +14 -1
  3. {moteus-0.3.70 → moteus-0.3.71}/moteus/version.py +1 -1
  4. {moteus-0.3.70 → moteus-0.3.71}/moteus.egg-info/PKG-INFO +1 -1
  5. {moteus-0.3.70 → moteus-0.3.71}/setup.py +1 -1
  6. {moteus-0.3.70 → moteus-0.3.71}/README.md +0 -0
  7. {moteus-0.3.70 → moteus-0.3.71}/moteus/__init__.py +0 -0
  8. {moteus-0.3.70 → moteus-0.3.71}/moteus/aioserial.py +0 -0
  9. {moteus-0.3.70 → moteus-0.3.71}/moteus/aiostream.py +0 -0
  10. {moteus-0.3.70 → moteus-0.3.71}/moteus/calibrate_encoder.py +0 -0
  11. {moteus-0.3.70 → moteus-0.3.71}/moteus/command.py +0 -0
  12. {moteus-0.3.70 → moteus-0.3.71}/moteus/export.py +0 -0
  13. {moteus-0.3.70 → moteus-0.3.71}/moteus/fdcanusb.py +0 -0
  14. {moteus-0.3.70 → moteus-0.3.71}/moteus/moteus.py +0 -0
  15. {moteus-0.3.70 → moteus-0.3.71}/moteus/multiplex.py +0 -0
  16. {moteus-0.3.70 → moteus-0.3.71}/moteus/posix_aioserial.py +0 -0
  17. {moteus-0.3.70 → moteus-0.3.71}/moteus/pythoncan.py +0 -0
  18. {moteus-0.3.70 → moteus-0.3.71}/moteus/reader.py +0 -0
  19. {moteus-0.3.70 → moteus-0.3.71}/moteus/regression.py +0 -0
  20. {moteus-0.3.70 → moteus-0.3.71}/moteus/router.py +0 -0
  21. {moteus-0.3.70 → moteus-0.3.71}/moteus/transport.py +0 -0
  22. {moteus-0.3.70 → moteus-0.3.71}/moteus/win32_aioserial.py +0 -0
  23. {moteus-0.3.70 → moteus-0.3.71}/moteus.egg-info/SOURCES.txt +0 -0
  24. {moteus-0.3.70 → moteus-0.3.71}/moteus.egg-info/dependency_links.txt +0 -0
  25. {moteus-0.3.70 → moteus-0.3.71}/moteus.egg-info/entry_points.txt +0 -0
  26. {moteus-0.3.70 → moteus-0.3.71}/moteus.egg-info/requires.txt +0 -0
  27. {moteus-0.3.70 → moteus-0.3.71}/moteus.egg-info/top_level.txt +0 -0
  28. {moteus-0.3.70 → moteus-0.3.71}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: moteus
3
- Version: 0.3.70
3
+ Version: 0.3.71
4
4
  Summary: moteus brushless controller library and tools
5
5
  Home-page: https://github.com/mjbots/moteus
6
6
  Author: mjbots Robotic Systems
@@ -54,15 +54,23 @@ class FirmwareUpgrade:
54
54
  self.old = old
55
55
  self.new = new
56
56
 
57
- SUPPORTED_ABI_VERSION = 0x0107
57
+ SUPPORTED_ABI_VERSION = 0x0108
58
58
 
59
59
  if new > SUPPORTED_ABI_VERSION:
60
60
  raise RuntimeError(f"\nmoteus_tool needs to be upgraded to support this firmware\n\n (likely 'python -m pip install --upgrade moteus')\n\nThe provided firmare is ABI version 0x{new:04x} but this moteus_tool only supports up to 0x{SUPPORTED_ABI_VERSION:04x}")
61
61
 
62
+ if old > SUPPORTED_ABI_VERSION:
63
+ raise RuntimeError(f"\nmoteus_tool needs to be upgraded to support this board\n\n (likely 'python -m pip install --upgrade moteus')\n\nThe board firmware is ABI version 0x{old:04x} but this moteus_tool only supports up to 0x{SUPPORTED_ABI_VERSION:04x}")
64
+
62
65
  def fix_config(self, old_config):
63
66
  lines = old_config.split(b'\n')
64
67
  items = dict([line.split(b' ') for line in lines if b' ' in line])
65
68
 
69
+ if self.new <= 0x0107 and self.old >= 0x0108:
70
+ if float(items.get(b'servo.bemf_feedforward', '0')) == 0.0:
71
+ print("Reverting servo.bemf_feedforward to 1.0")
72
+ items[b'servo.bemf_feedforward'] = b'1.0'
73
+
66
74
  if self.new <= 0x0106 and self.old >= 0x0107:
67
75
  # motor_position.output.sign was broken in older versions.
68
76
  if int(items[b'motor_position.output.sign']) != 1:
@@ -294,6 +302,11 @@ class FirmwareUpgrade:
294
302
  # No actual configuration updating is required here.
295
303
  pass
296
304
 
305
+ if self.new >= 0x0108 and self.old <= 0x0107:
306
+ if float(items.get(b'servo.bemf_feedforward', 1.0)) == 1.0:
307
+ print("Upgrading servo.bemf_feedforward to 0.0")
308
+ items[b'servo.bemf_feedforward'] = b'0.0'
309
+
297
310
  lines = [key + b' ' + value for key, value in items.items()]
298
311
  return b'\n'.join(lines)
299
312
 
@@ -12,4 +12,4 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- VERSION="0.3.70"
15
+ VERSION="0.3.71"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: moteus
3
- Version: 0.3.70
3
+ Version: 0.3.71
4
4
  Summary: moteus brushless controller library and tools
5
5
  Home-page: https://github.com/mjbots/moteus
6
6
  Author: mjbots Robotic Systems
@@ -25,7 +25,7 @@ long_description = (here / 'README.md').read_text(encoding='utf-8')
25
25
 
26
26
  setuptools.setup(
27
27
  name = 'moteus',
28
- version = "0.3.70",
28
+ version = "0.3.71",
29
29
  description = 'moteus brushless controller library and tools',
30
30
  long_description = long_description,
31
31
  long_description_content_type = 'text/markdown',
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