moteus 0.3.77__tar.gz → 0.3.79__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.77 → moteus-0.3.79}/PKG-INFO +1 -1
- {moteus-0.3.77 → moteus-0.3.79}/moteus/moteus_tool.py +6 -3
- {moteus-0.3.77 → moteus-0.3.79}/moteus/version.py +1 -1
- {moteus-0.3.77 → moteus-0.3.79}/moteus.egg-info/PKG-INFO +1 -1
- {moteus-0.3.77 → moteus-0.3.79}/setup.py +1 -1
- {moteus-0.3.77 → moteus-0.3.79}/README.md +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus/__init__.py +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus/aioserial.py +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus/aiostream.py +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus/calibrate_encoder.py +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus/command.py +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus/export.py +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus/fdcanusb.py +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus/moteus.py +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus/multiplex.py +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus/posix_aioserial.py +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus/pythoncan.py +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus/reader.py +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus/regression.py +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus/router.py +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus/transport.py +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus/win32_aioserial.py +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus.egg-info/SOURCES.txt +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus.egg-info/dependency_links.txt +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus.egg-info/entry_points.txt +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus.egg-info/requires.txt +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/moteus.egg-info/top_level.txt +0 -0
- {moteus-0.3.77 → moteus-0.3.79}/setup.cfg +0 -0
@@ -108,7 +108,7 @@ class FirmwareUpgrade:
|
|
108
108
|
if self.new <= 0x0109 and self.old >= 0x010a:
|
109
109
|
kv = float(items.pop(b'motor.Kv'))
|
110
110
|
|
111
|
-
v_per_hz = ((V_PER_HZ_FUDGE_010a * 0.5 * 60) / kv)
|
111
|
+
v_per_hz = 0 if kv == 0 else ((V_PER_HZ_FUDGE_010a * 0.5 * 60) / kv)
|
112
112
|
items[b'motor.v_per_hz'] = str(v_per_hz).encode('utf8')
|
113
113
|
|
114
114
|
print(f"Downgrading motor.Kv to motor.v_per_hz and fixing fudge: old Kv={kv} v_per_hz={v_per_hz}")
|
@@ -475,7 +475,7 @@ class FirmwareUpgrade:
|
|
475
475
|
if self.new >= 0x010a and self.old <= 0x0109:
|
476
476
|
v_per_hz = float(items.pop(b'motor.v_per_hz'))
|
477
477
|
|
478
|
-
kv = V_PER_HZ_FUDGE_010a * 0.5 * 60 / v_per_hz
|
478
|
+
kv = 0 if v_per_hz == 0 else V_PER_HZ_FUDGE_010a * 0.5 * 60 / v_per_hz
|
479
479
|
items[b'motor.Kv'] = str(kv).encode('utf8')
|
480
480
|
|
481
481
|
print(f"Upgraded motor.v_per_hz to new motor.Kv and fixed fudge: old v_per_hz={v_per_hz} new Kv={kv}")
|
@@ -1171,7 +1171,10 @@ class Stream:
|
|
1171
1171
|
|
1172
1172
|
print("Calibration complete")
|
1173
1173
|
|
1174
|
-
|
1174
|
+
try:
|
1175
|
+
now = datetime.datetime.now(datetime.timezone.utc)
|
1176
|
+
except:
|
1177
|
+
now = datetime.datetime.utcnow()
|
1175
1178
|
|
1176
1179
|
report = {
|
1177
1180
|
'timestamp' : now.strftime('%Y-%m-%d %H:%M:%S.%f'),
|
@@ -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.79",
|
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
|