31 #ifndef MOTORMESSAGE_H 32 #define MOTORMESSAGE_H 35 #include <boost/array.hpp> 42 #define MIN_FW_RECOMMENDED 32 43 #define MIN_FW_MOT_POW_ACTIVE 32 44 #define MIN_FW_ESTOP_SUPPORT 32 45 #define MIN_FW_HW_VERSION_SET 32 46 #define MIN_FW_MAX_SPEED_AND_PWM 34 47 #define MIN_FW_ENC_6_STATE 35 48 #define MIN_FW_FIRMWARE_DATE 35 49 #define MIN_FW_DEADZONE 35 50 #define MIN_FW_PID_V_TERM 35
static const uint8_t delimeter
void setData(int32_t data)
static uint8_t generateChecksum(const std::vector< uint8_t > &data)
boost::array< uint8_t, 8 > RawMotorMessage
static const uint8_t protocol_version
static const uint8_t valid_types[]
MotorMessage::MessageTypes getType() const
static int verifyType(uint8_t t)
MotorMessage::ErrorCodes deserialize(const RawMotorMessage &serialized)
boost::array< uint8_t, 4 > data
void setRegister(MotorMessage::Registers reg)
RawMotorMessage serialize() const
void setType(MotorMessage::MessageTypes type)
static const uint8_t valid_registers[]
static int verifyRegister(uint8_t r)
MotorMessage::Registers getRegister() const
static const int32_t MOT_POW_ACTIVE