moteus 0.3.80__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/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
@@ -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.80"
15
+ VERSION="0.3.81"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: moteus
3
- Version: 0.3.80
3
+ Version: 0.3.81
4
4
  Summary: moteus brushless controller library and tools
5
5
  Home-page: https://github.com/mjbots/moteus
6
6
  Author: mjbots Robotic Systems
@@ -9,15 +9,15 @@ moteus/moteus.py,sha256=vImSRBn6VEmoijD6hvrSRVxuv1_xVaEJU3F_3Wi6GiE,52498
9
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=4CZygTWU0hGx_7Av2kETdmtOa4VDe0Hpt9ZdPDbBKYw,4289
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=eHPy6QUjfQRDsGhBBEQF1uCzJEi-CJ7dR_sTw8NVxO4,627
17
+ moteus/version.py,sha256=6iWEiuheEClkYZXEvvUCx_P1R2ouwdcOXUajiZeOdYc,627
18
18
  moteus/win32_aioserial.py,sha256=culdl-vYxBKD5n2s5LkIMGyUaHyCcEc8BL5-DWEaxX8,2025
19
- moteus-0.3.80.dist-info/METADATA,sha256=wphTasyHXLREUKwd11-14HQzKPsQ0IoXJOQ5tYR1GEI,3441
20
- moteus-0.3.80.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
21
- moteus-0.3.80.dist-info/entry_points.txt,sha256=accRcwir_K8wCf7i3qHb5R6CPh5SiSgd5a1A92ibb9E,56
22
- moteus-0.3.80.dist-info/top_level.txt,sha256=aZzmI_yecTaDrdSp29pTJuowaSQ9dlIZheQpshGg4YQ,7
23
- moteus-0.3.80.dist-info/RECORD,,
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,,