AK80-64 AK Series Actuator Driver Manual V1.0.8
Table Of Contents
- Notice
- 1.Ensure that the circuit is normal and the interfac
- 2. The driver board will be hot when output, pleas
- 3. Please Check whether the parts are in good cond
- 4. Several optional control modes can’t be switche
- 5. Please use it strictly in accordance with the w
- Feature
- Disclaimer
- Version Change Record
- 1.Drive Product Information
- ①Three-phase wires connection port
- 2.R-link produce information
- 2.1 Introduction of R-link' appearance&Specificat
- 3. Actuator and R-link Connection and Notices
- Connection instructions: Connect the USB cable to
- 4. Instructions for use of the upper computer
- 1.Click Open File and select the firmware. The firmw
- 2.Click Bootloader.
- 3.Click download and wait for the progress bar to re
- 5. Driver board communication protocol and descrip
https://www.cubemars.com/
33 / 52
CAN_PACKET_SET_CURRENT_BRAKE, // Current brake mode
CAN_PACKET_SET_RPM, //Velocity mode
CAN_PACKET_SET_POS, // Position mode
CAN_PACKET_SET_ORIGIN_HERE, //Set origin mode
CAN_PACKET_SET_POS_SPD, //Position velocity loop mode
} CAN_PACKET_ID;
void comm_can_transmit_eid(uint32_t id, const uint8_t *data, uint8_t len) {
uint8_t i=0;
if (len > 8) {
len = 8;
}
CanTxMsg TxMessage;
TxMessage.StdId = 0;
TxMessage.IDE = CAN_ID_EXT;
TxMessage.ExtId = id;
TxMessage.RTR = CAN_RTR_DATA;
TxMessage.DLC = len;
//memcpy(txmsg.data8, data, len);
for(i=0;i<len;i++)
TxMessage.Data[i]=data[i];
CAN_Transmit(CHASSIS_CAN, &TxMessage);
}
void buffer_append_int32(uint8_t* buffer, int32_t number, int32_t *index) {
buffer[(*index)++] = number >> 24;
buffer[(*index)++] = number >> 16;
buffer[(*index)++] = number >> 8;
buffer[(*index)++] = number;
}
void buffer_append_int16(uint8_t* buffer, int16_t number, int16_t *index) {
buffer[(*index)++] = number >> 8;
buffer[(*index)++] = number;
}