Motor controller device (Koors40).
More...
#include <AM_CAN_Koors40.h>
|
| | CAN_Koors40 (int busId, int deviceID) |
| | Construct a Koors40 device with the given CAN bus and CAN ID.
|
| void | setSpeed (int speed) |
| | Command the motor with a percentage output.
|
| void | setBrakeMode () |
| | Put the controller in brake (coast disabled) mode.
|
| void | setCoastMode () |
| | Put the controller in coast (brake disabled) mode.
|
| | CanDevice (int busId, int deviceID, int deviceManufacturer, int deviceType) |
| | Construct a CAN device wrapper.
|
| virtual | ~CanDevice ()=default |
| | Virtual destructor.
|
| int | getDeviceId () |
| | Get this device's configured CAN ID.
|
| void | RestartDevice () |
| | Request a device reboot via CAN command.
|
Motor controller device (Koors40).
◆ CAN_Koors40()
| CAN_Koors40::CAN_Koors40 |
( |
int | busId, |
|
|
int | deviceID ) |
|
explicit |
Construct a Koors40 device with the given CAN bus and CAN ID.
- Parameters
-
| busId | The selected CAN bus number. |
| deviceID | The device's CAN ID. |
◆ setBrakeMode()
| void CAN_Koors40::setBrakeMode |
( |
| ) |
|
Put the controller in brake (coast disabled) mode.
◆ setCoastMode()
| void CAN_Koors40::setCoastMode |
( |
| ) |
|
Put the controller in coast (brake disabled) mode.
◆ setSpeed()
| void CAN_Koors40::setSpeed |
( |
int | speed | ) |
|
Command the motor with a percentage output.
- Parameters
-
| speed | Desired output in percent [-100..100]. Values are clamped. |
The documentation for this class was generated from the following file: