增加轮速输出

This commit is contained in:
2025-11-07 10:31:57 +08:00
parent 84221794b6
commit 2f580d0d3a
11 changed files with 121 additions and 98 deletions

View File

@@ -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;