This subclass generates Current-Control Messages which allow to control the motor via a current limit.
More...
#include <message_builder.h>
|
uint8_t | data [8] |
|
uint8_t | can_address |
|
This subclass generates Current-Control Messages which allow to control the motor via a current limit.
◆ CurrentControl()
CurrentControl::CurrentControl |
( |
uint8_t |
address | ) |
|
Constructor of the CurrentControl Class
- Parameters
-
address | CAN-ID of the BLDC which is controlled by this class instance. |
◆ setCurrent()
void CurrentControl::setCurrent |
( |
int32_t |
current | ) |
|
Sets the current of this class instance.
- Parameters
-
current | The current which should be set. NOTE: Current is set in 0.1A increments. setCurrent(1) will set the BLDC to 0.1 A |
The documentation for this class was generated from the following files: