|
Haptic Controller
|
Structure for setting ODrive Parameters Endpoint_ids can be found at the following link: https://odrive-cdn.nyc3.digitaloceanspaces.com/releases/firmware/laZ44T35qb_uR6AW6S5RdTrOL9sqZlc2_FonY3vm21Q/flat_endpoints.json. More...
Public Member Functions | |
| constexpr | Set_Param_msg_t ()=default |
| Set_Param_msg_t (const TBoard::TCanIntf::TMsg &msg) | |
| void | encode_msg (TBoard::TCanIntf::TMsg &msg) |
| void | decode_msg (const TBoard::TCanIntf::TMsg &msg) |
| void | encode_buf (uint8_t *buf) const |
| Encoders data to the buffer to send over CAN. | |
| void | decode_buf (const uint8_t *buf) |
| Decoders data from the buffer and saves to struct message. | |
Public Attributes | |
| uint8_t | Opcode = 1 |
| uint16_t | Endpoint_ID = 0 |
| uint8_t | Reserved = 0 |
| T | Value |
Static Public Attributes | |
| static const uint8_t | cmd_id = 0x04 |
| static const uint8_t | msg_length = 8 |
Structure for setting ODrive Parameters Endpoint_ids can be found at the following link: https://odrive-cdn.nyc3.digitaloceanspaces.com/releases/firmware/laZ44T35qb_uR6AW6S5RdTrOL9sqZlc2_FonY3vm21Q/flat_endpoints.json.
Definition at line 25 of file odrive_msgs.hpp.
|
constexprdefault |
|
inline |
Definition at line 30 of file odrive_msgs.hpp.
References Set_Param_msg_t< T >::decode_msg().
|
inline |
Decoders data from the buffer and saves to struct message.
| buf | pointer to the buffer |
Definition at line 58 of file odrive_msgs.hpp.
References Set_Param_msg_t< T >::Endpoint_ID, Set_Param_msg_t< T >::Opcode, Set_Param_msg_t< T >::Reserved, and Set_Param_msg_t< T >::Value.
Referenced by Set_Param_msg_t< T >::decode_msg().
|
inline |
Definition at line 40 of file odrive_msgs.hpp.
References Set_Param_msg_t< T >::decode_buf().
Referenced by Set_Param_msg_t< T >::Set_Param_msg_t().
|
inline |
Encoders data to the buffer to send over CAN.
| buf | pointer to the buffer |
Definition at line 48 of file odrive_msgs.hpp.
References Set_Param_msg_t< T >::Endpoint_ID, Set_Param_msg_t< T >::Opcode, Set_Param_msg_t< T >::Reserved, and Set_Param_msg_t< T >::Value.
Referenced by Set_Param_msg_t< T >::encode_msg().
|
inline |
Definition at line 35 of file odrive_msgs.hpp.
References Set_Param_msg_t< T >::encode_buf().
|
static |
Definition at line 66 of file odrive_msgs.hpp.
| uint16_t Set_Param_msg_t< T >::Endpoint_ID = 0 |
Definition at line 70 of file odrive_msgs.hpp.
Referenced by Set_Param_msg_t< T >::decode_buf(), OdriveController< CAN >::enable_anticogging(), Set_Param_msg_t< T >::encode_buf(), and OdriveController< CAN >::set_params().
|
static |
Definition at line 67 of file odrive_msgs.hpp.
| uint8_t Set_Param_msg_t< T >::Opcode = 1 |
Definition at line 69 of file odrive_msgs.hpp.
Referenced by Set_Param_msg_t< T >::decode_buf(), and Set_Param_msg_t< T >::encode_buf().
| uint8_t Set_Param_msg_t< T >::Reserved = 0 |
Definition at line 71 of file odrive_msgs.hpp.
Referenced by Set_Param_msg_t< T >::decode_buf(), and Set_Param_msg_t< T >::encode_buf().
| T Set_Param_msg_t< T >::Value |
Definition at line 74 of file odrive_msgs.hpp.
Referenced by Set_Param_msg_t< T >::decode_buf(), OdriveController< CAN >::enable_anticogging(), Set_Param_msg_t< T >::encode_buf(), and OdriveController< CAN >::set_params().