Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
torqeedo_interface_dune_task [2019/10/11 10:43] – nikolal | torqeedo_interface_dune_task [2022/09/19 11:34] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Torqeedo Interface DUNE task ====== | ====== Torqeedo Interface DUNE task ====== | ||
To enable communication between the IMC messages from DUNE, and the CAN bus used by the Torqeedo Interface Board, a new task has been created for use in the Otter. DUNE was also missing support for CAN, so this had to be added. | To enable communication between the IMC messages from DUNE, and the CAN bus used by the Torqeedo Interface Board, a new task has been created for use in the Otter. DUNE was also missing support for CAN, so this had to be added. | ||
+ | |||
+ | ===== Task requirements ===== | ||
+ | The task uses the [[socketcan_dune_implementation|SocketCAN DUNE implementation]], | ||
+ | |||
+ | |||
===== How does the task work ===== | ===== How does the task work ===== | ||
- | The task is of the periodic type, which limits how often it runs. The frequency of the task can be set with the parameter '' | + | The task is of the periodic type, which limits how often it runs. The frequency of the task can be set with the parameter '' |
- | The task uses the SocketCAN implementation in DUNE to communicate with the CAN bus. | + | |
+ | One run of the task either reads a CAN message, or writes to the motors. To limit how often the motor is written to, a parameter called '' | ||
+ | You want the motor to be written to 4 times a second. Say you have set " | ||
+ | |||
+ | In addition to reading information and controlling motor throttle, |