mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-24 19:47:44 +08:00
发布beta版本,目前基本功能都可用
This commit is contained in:
@@ -11,7 +11,7 @@ static void DecodeDriven(CANInstance *_instance)
|
||||
driven_motor_info[i]->last_ecd = driven_motor_info[i]->ecd;
|
||||
driven_motor_info[i]->ecd = (uint16_t)((_instance->rx_buff[7] << 8) | _instance->rx_buff[6]);
|
||||
driven_motor_info[i]->speed_rpm = (uint16_t)(_instance->rx_buff[5] << 8 | _instance->rx_buff[4]);
|
||||
driven_motor_info[i]->given_current = (uint16_t)(_instance->rx_buff[3] << 8 | _instance->rx_buff[2]);
|
||||
driven_motor_info[i]->real_current = (uint16_t)(_instance->rx_buff[3] << 8 | _instance->rx_buff[2]);
|
||||
driven_motor_info[i]->temperate = _instance->rx_buff[1];
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user