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.
- {moteus-0.3.70 → moteus-0.3.71}/PKG-INFO +1 -1
- {moteus-0.3.70 → moteus-0.3.71}/moteus/moteus_tool.py +14 -1
- {moteus-0.3.70 → moteus-0.3.71}/moteus/version.py +1 -1
- {moteus-0.3.70 → moteus-0.3.71}/moteus.egg-info/PKG-INFO +1 -1
- {moteus-0.3.70 → moteus-0.3.71}/setup.py +1 -1
- {moteus-0.3.70 → moteus-0.3.71}/README.md +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus/__init__.py +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus/aioserial.py +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus/aiostream.py +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus/calibrate_encoder.py +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus/command.py +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus/export.py +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus/fdcanusb.py +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus/moteus.py +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus/multiplex.py +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus/posix_aioserial.py +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus/pythoncan.py +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus/reader.py +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus/regression.py +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus/router.py +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus/transport.py +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus/win32_aioserial.py +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus.egg-info/SOURCES.txt +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus.egg-info/dependency_links.txt +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus.egg-info/entry_points.txt +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus.egg-info/requires.txt +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/moteus.egg-info/top_level.txt +0 -0
- {moteus-0.3.70 → moteus-0.3.71}/setup.cfg +0 -0
@@ -54,15 +54,23 @@ class FirmwareUpgrade:
|
|
54
54
|
self.old = old
|
55
55
|
self.new = new
|
56
56
|
|
57
|
-
SUPPORTED_ABI_VERSION =
|
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
|
|
@@ -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.
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|