blmc_drivers
|
This MotorBoardCommand class is a data structurs that defines a command. More...
#include <motor_board.hpp>
Public Types | |
enum | IDs { ENABLE_SYS = 1, ENABLE_MTR1 = 2, ENABLE_MTR2 = 3, ENABLE_VSPRING1 = 4, ENABLE_VSPRING2 = 5, SEND_CURRENT = 12, SEND_POSITION = 13, SEND_VELOCITY = 14, SEND_ADC6 = 15, SEND_ENC_INDEX = 16, SEND_ALL = 20, SET_CAN_RECV_TIMEOUT = 30, ENABLE_POS_ROLLOVER_ERROR = 31 } |
IDs are the different implemented commands that one can send to the MotorBoard. | |
enum | Contents { ENABLE = 1, DISABLE = 0 } |
Is the different command status. | |
Public Member Functions | |
MotorBoardCommand () | |
Construct a new MotorBoardCommand object. | |
MotorBoardCommand (uint32_t id, int32_t content) | |
Construct a new MotorBoardCommand object. More... | |
void | print () const |
Display on a terminal the status of the message. | |
Public Attributes | |
uint32_t | id_ |
id_ is the command to be modifies on the card. | |
int32_t | content_ |
content_ is the value of teh command to be sent to the cards. | |
This MotorBoardCommand class is a data structurs that defines a command.
|
inline |
Construct a new MotorBoardCommand object.
id | defines the command to apply. |
content | defines of the command is enabled or disabled. |