From 0a220fccdd10378ec311e17871edbc0acf089569 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sun, 28 Apr 2024 17:45:47 +0800 Subject: [PATCH] update --- iflytop_canbus_protocol.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/iflytop_canbus_protocol.hpp b/iflytop_canbus_protocol.hpp index 257f7c1..d5362bb 100644 --- a/iflytop_canbus_protocol.hpp +++ b/iflytop_canbus_protocol.hpp @@ -92,6 +92,7 @@ typedef enum { kerr_overtime = 1, kerr_invalid_param = 2, kerr_invalid_param_num = 3, + kerr_subdevice_offline = 4, // 驱动器错误 kerr_motor_reset_error = 100, @@ -316,8 +317,11 @@ typedef struct { } report_exeception_data_t; typedef struct { - uint16_t subid; - uint32_t pressure; + uint8_t sensorDataNum; + struct { + uint8_t subid; + int16_t pressureVal; + } data[]; } report_pressure_data_t; typedef struct {