moteus 0.3.79__py3-none-any.whl → 0.3.81__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/pythoncan.py +10 -0
- moteus/version.py +1 -1
- {moteus-0.3.79.dist-info → moteus-0.3.81.dist-info}/METADATA +1 -1
- {moteus-0.3.79.dist-info → moteus-0.3.81.dist-info}/RECORD +8 -8
- {moteus-0.3.79.dist-info → moteus-0.3.81.dist-info}/WHEEL +0 -0
- {moteus-0.3.79.dist-info → moteus-0.3.81.dist-info}/entry_points.txt +0 -0
- {moteus-0.3.79.dist-info → moteus-0.3.81.dist-info}/top_level.txt +0 -0
moteus/moteus_tool.py
CHANGED
@@ -887,7 +887,7 @@ class Stream:
|
|
887
887
|
if old_firmware is None else
|
888
888
|
old_firmware.version,
|
889
889
|
elf.firmware_version,
|
890
|
-
None if old_firmware is None else old_firmware
|
890
|
+
None if old_firmware is None else getattr(old_firmware, 'family', 0)
|
891
891
|
)
|
892
892
|
|
893
893
|
if not self.args.bootloader_active and not self.args.no_restore_config:
|
@@ -1950,7 +1950,7 @@ class Stream:
|
|
1950
1950
|
if self.firmware.version >= 0x010a:
|
1951
1951
|
await self.command(f"conf set motor.Kv {motor_kv}")
|
1952
1952
|
else:
|
1953
|
-
if self.firmware
|
1953
|
+
if getattr(self.firmware, 'family', 0) == 2:
|
1954
1954
|
# moteus-c1 in older firmwares had additional
|
1955
1955
|
# scaling.
|
1956
1956
|
motor_kv /= 1.38
|
moteus/pythoncan.py
CHANGED
@@ -50,6 +50,16 @@ class PythonCan:
|
|
50
50
|
self._disable_brs = kwargs['disable_brs']
|
51
51
|
del kwargs['disable_brs']
|
52
52
|
|
53
|
+
if ('timing' not in kwargs and
|
54
|
+
kwargs.get('interface', can.rc['interface']) == 'pcan'):
|
55
|
+
# We default to the timing that works with moteus and assume
|
56
|
+
# an 80MHz base clock, which seems pretty typical for PCAN
|
57
|
+
# interfaces.
|
58
|
+
kwargs['timing'] = can.BitTimingFd.from_sample_point(
|
59
|
+
nom_bitrate=1000000, data_bitrate=5000000,
|
60
|
+
nom_sample_point=66, data_sample_point=66,
|
61
|
+
f_clock=80000000)
|
62
|
+
|
53
63
|
self._can = can.Bus(*args, **kwargs)
|
54
64
|
self._setup = False
|
55
65
|
|
moteus/version.py
CHANGED
@@ -6,18 +6,18 @@ 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=eLMfUkixYio7dLHcF2OY1Xt_MLoa8DF74Z6SVdXLD_Y,93728
|
10
10
|
moteus/multiplex.py,sha256=2tdNX5JSh21TOjN6N9LKribLQtVYyyYbXjzwXB64sfA,12119
|
11
11
|
moteus/posix_aioserial.py,sha256=2oDrw8TBEwuEQjY41g9rHeuFeffcPHqMwNS3nf5NVq8,3137
|
12
|
-
moteus/pythoncan.py,sha256=
|
12
|
+
moteus/pythoncan.py,sha256=M5Qba3aCzO_GyXcIsLJxjw3NrPgUk4CUnHOQIhQeIb0,4786
|
13
13
|
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=6iWEiuheEClkYZXEvvUCx_P1R2ouwdcOXUajiZeOdYc,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.81.dist-info/METADATA,sha256=IJMJPV751cPCxJzHohBLxrV9k9JJ1B-IyW9cllDuBKs,3441
|
20
|
+
moteus-0.3.81.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
21
|
+
moteus-0.3.81.dist-info/entry_points.txt,sha256=accRcwir_K8wCf7i3qHb5R6CPh5SiSgd5a1A92ibb9E,56
|
22
|
+
moteus-0.3.81.dist-info/top_level.txt,sha256=aZzmI_yecTaDrdSp29pTJuowaSQ9dlIZheQpshGg4YQ,7
|
23
|
+
moteus-0.3.81.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|