28#define MOTOR_CAN_CONTROL_BASE 0x500
29#define MOTOR_CAN_CONTROLLER_BASE 0x400
31#define STATUS_INFO (MOTOR_CAN_CONTROLLER_BASE + 0X01)
32#define BUS_MEASUREMENT (MOTOR_CAN_CONTROLLER_BASE + 0X02)
33#define VELOCTIY_MEASUREMENT (MOTOR_CAN_CONTROLLER_BASE + 0X03)
34#define PHASE_CURRENT (MOTOR_CAN_CONTROLLER_BASE + 0X04)
35#define MOTOR_VOLTAGE (MOTOR_CAN_CONTROLLER_BASE + 0X05)
36#define MOTOR_CURRENT (MOTOR_CAN_CONTROLLER_BASE + 0X06)
37#define MOTOR_BACK_EMF (MOTOR_CAN_CONTROLLER_BASE + 0x07)
38#define RAIL_15V (MOTOR_CAN_CONTROLLER_BASE + 0x08)
39#define HEAT_SINK_MOTOR_TEMP (MOTOR_CAN_CONTROLLER_BASE + 0x0B)
56 float vehicle_velocity;
60 float phase_c_current;
61 float phase_b_current;
76 float rail_15V_supply;
83StatusCode motor_can_transmit(uint32_t
id,
bool extended,
const uint8_t *msg, uint8_t dlc);
85void tx_set_current(
float current);
86void tx_set_velocity(uint32_t velocity);
90void rx_set_limit_flags(uint16_t flags);
91void rx_set_error_flags(uint16_t flags);
92void rx_set_bus_current(
float current);
93void rx_set_bus_voltage(
float voltage);
94void rx_set_vehicle_velocity(
float velocity);
95void rx_set_motor_velocity(
float velocity);
96void rx_set_phase_c_current(
float current);
97void rx_set_phase_b_current(
float current);
98void rx_set_voltage_d(
float voltage);
99void rx_set_voltage_q(
float voltage);
100void rx_set_current_d(
float current);
101void rx_set_current_q(
float current);
102void rx_set_back_EMF_d(
float voltage);
103void rx_set_back_EMF_q(
float voltage);
104void rx_set_rail_15v_supply(
float voltage);
105void rx_set_heat_sink_temp(
float degrees);
106void rx_set_motor_temp(
float degrees);
StatusCode
StatusCodes for various errors.
Definition: status.h:27
Definition: ws22_motor_can.h:46
Definition: ws22_motor_can.h:41