This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import sched | |
| import logging | |
| import threading | |
| import functools | |
| import math | |
| logger = logging.getLogger(__name__) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -u usb2can/canal_interface.py canal/canal_interface.py | |
| --- usb2can/canal_interface.py 2019-02-19 21:47:24.224270220 +0100 | |
| +++ canal/canal_interface.py 2019-02-19 21:53:05.516830236 +0100 | |
| @@ -1,30 +1,22 @@ | |
| +#!/usr/bin/env python | |
| # coding: utf-8 | |
| """ | |
| -This interface is for windows only, otherwise use socketCAN. | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! python3 | |
| import canopen | |
| from canopen.objectdictionary import datatypes | |
| def curtis_1232e_dict(): | |
| """CAN object dictionary template for the Curtis 1232E motor controller""" | |
| od = canopen.objectdictionary.import_od('../od/Curtis_1232E.eds') |