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 {