moteus 0.3.78__py3-none-any.whl → 0.3.79__py3-none-any.whl
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/moteus_tool.py +2 -2
- moteus/version.py +1 -1
- {moteus-0.3.78.dist-info → moteus-0.3.79.dist-info}/METADATA +1 -1
- {moteus-0.3.78.dist-info → moteus-0.3.79.dist-info}/RECORD +7 -7
- {moteus-0.3.78.dist-info → moteus-0.3.79.dist-info}/WHEEL +0 -0
- {moteus-0.3.78.dist-info → moteus-0.3.79.dist-info}/entry_points.txt +0 -0
- {moteus-0.3.78.dist-info → moteus-0.3.79.dist-info}/top_level.txt +0 -0
moteus/moteus_tool.py
CHANGED
@@ -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}")
|
moteus/version.py
CHANGED
@@ -6,7 +6,7 @@ moteus/command.py,sha256=UkOsbtkso6Oyex8CfbpAKpBNriik519ymxL86EZGkRs,1169
|
|
6
6
|
moteus/export.py,sha256=XitBUuf4MDRIneXQSUptizIhZi2BdHyFO2Vo_2d2CFI,1742
|
7
7
|
moteus/fdcanusb.py,sha256=7PrQiCTROY96gdT2zSZYU1bOCriw-I7H6NspaZpiEx4,7431
|
8
8
|
moteus/moteus.py,sha256=vImSRBn6VEmoijD6hvrSRVxuv1_xVaEJU3F_3Wi6GiE,52498
|
9
|
-
moteus/moteus_tool.py,sha256=
|
9
|
+
moteus/moteus_tool.py,sha256=WPdz6npbj3g59Gpn0ogxetiYIlf_5Rfo5lDXb1UiO9A,93698
|
10
10
|
moteus/multiplex.py,sha256=2tdNX5JSh21TOjN6N9LKribLQtVYyyYbXjzwXB64sfA,12119
|
11
11
|
moteus/posix_aioserial.py,sha256=2oDrw8TBEwuEQjY41g9rHeuFeffcPHqMwNS3nf5NVq8,3137
|
12
12
|
moteus/pythoncan.py,sha256=4CZygTWU0hGx_7Av2kETdmtOa4VDe0Hpt9ZdPDbBKYw,4289
|
@@ -14,10 +14,10 @@ moteus/reader.py,sha256=9i1-h4aGd4syfqtWJcpg70Bl-bmunkGU4FmXmOLyRt8,12121
|
|
14
14
|
moteus/regression.py,sha256=M5gjDBYJQ64iBXIrvBhMkD8TYhtlnQ85x8U4py0niGA,1196
|
15
15
|
moteus/router.py,sha256=501W5GZ12rFoc1lmcH3S7IYsoc-Q_-FJ4B3i37RzE3Q,2061
|
16
16
|
moteus/transport.py,sha256=WhkW2G9i25lkOlO55eI5_oXmU0PhDmxTeJ75Sg_7nTI,1021
|
17
|
-
moteus/version.py,sha256=
|
17
|
+
moteus/version.py,sha256=AVfkc9UMWkwmntsKe2K_NkRkf-7tdDHzWL3H7J_x5Cw,627
|
18
18
|
moteus/win32_aioserial.py,sha256=culdl-vYxBKD5n2s5LkIMGyUaHyCcEc8BL5-DWEaxX8,2025
|
19
|
-
moteus-0.3.
|
20
|
-
moteus-0.3.
|
21
|
-
moteus-0.3.
|
22
|
-
moteus-0.3.
|
23
|
-
moteus-0.3.
|
19
|
+
moteus-0.3.79.dist-info/METADATA,sha256=N6ND_qb-INXmDBQf9TvgXJOgz1ddVLWxucIh8CHMCoA,3441
|
20
|
+
moteus-0.3.79.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
21
|
+
moteus-0.3.79.dist-info/entry_points.txt,sha256=accRcwir_K8wCf7i3qHb5R6CPh5SiSgd5a1A92ibb9E,56
|
22
|
+
moteus-0.3.79.dist-info/top_level.txt,sha256=aZzmI_yecTaDrdSp29pTJuowaSQ9dlIZheQpshGg4YQ,7
|
23
|
+
moteus-0.3.79.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|