改imu
This commit is contained in:
parent
088db5d94f
commit
1a739ab634
@ -164,7 +164,7 @@ int8_t Virtual_Chassis_Update(Virtual_Chassis_t *chassis) {
|
|||||||
|
|
||||||
for (int i = 0; i < 4; i++){
|
for (int i = 0; i < 4; i++){
|
||||||
BSP_CAN_GetMessage(chassis->param.imu.can, 0x66 + i, &msg, BSP_CAN_TIMEOUT_IMMEDIATE);
|
BSP_CAN_GetMessage(chassis->param.imu.can, 0x66 + i, &msg, BSP_CAN_TIMEOUT_IMMEDIATE);
|
||||||
Virtual_Chassis_DecodeIMU(chassis, msg.parsed_id, msg.data, msg.dlc);
|
Virtual_Chassis_DecodeIMU(chassis, 0x66 + i, msg.data, msg.dlc);
|
||||||
}
|
}
|
||||||
|
|
||||||
return DEVICE_OK;
|
return DEVICE_OK;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user