增加轮速输出
This commit is contained in:
@@ -185,8 +185,20 @@ typedef union _UnInfNavigationOutputC
|
||||
} UnInfNavigationOutputC;
|
||||
|
||||
|
||||
/* 车辆轮速输入数据结构体 */
|
||||
typedef struct {
|
||||
/* 四轮速度数据 (8字节) */
|
||||
int16_t front_left_speed; // 左前轮速 单位:km/h
|
||||
int16_t front_right_speed; // 右前轮速 单位:km/h
|
||||
int16_t rear_left_speed; // 左后轮速 单位:km/h
|
||||
int16_t rear_right_speed; // 右后轮速 单位:km/h
|
||||
} StrVehicleWheelSpeedInput;
|
||||
|
||||
|
||||
/* 轮速数据联合体(用于原始字节访问) */
|
||||
typedef union {
|
||||
StrVehicleWheelSpeedInput speed_data; // 结构化轮速数据
|
||||
uint8_t arr[sizeof(StrVehicleWheelSpeedInput)]; // 原始字节数组
|
||||
} UnWheelSpeedInput;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user