From c23c24022a0b17640e26893771bedbfe08e59dd0 Mon Sep 17 00:00:00 2001 From: Lizongdi <1210855344@qq.com> Date: Wed, 2 Sep 2026 17:04:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E6=96=87=E4=BB=B6=E5=9B=9E?= =?UTF-8?q?=E9=80=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/paint_robot_new/Protobuf/PSource/bsp_GV.pb.h | 2 +- project/paint_robot_new/Protobuf/PSource/bsp_IV.pb.h | 11 ++++------- project/paint_robot_new/Protobuf/PSource/bsp_PV.pb.h | 11 ++++------- project/paint_robot_new/Protobuf/Proto/bsp_IV.proto | 1 - project/paint_robot_new/Protobuf/Proto/bsp_PV.proto | 1 - 5 files changed, 9 insertions(+), 17 deletions(-) diff --git a/project/paint_robot_new/Protobuf/PSource/bsp_GV.pb.h b/project/paint_robot_new/Protobuf/PSource/bsp_GV.pb.h index 3355058..da0dd0e 100644 --- a/project/paint_robot_new/Protobuf/PSource/bsp_GV.pb.h +++ b/project/paint_robot_new/Protobuf/PSource/bsp_GV.pb.h @@ -99,7 +99,7 @@ extern const pb_msgdesc_t GV_struct_define_msg; /* Maximum encoded size of messages (where known) */ #define BSP_GV_PB_H_MAX_SIZE GV_struct_define_size -#define GV_struct_define_size 917 +#define GV_struct_define_size 906 #ifdef __cplusplus } /* extern "C" */ diff --git a/project/paint_robot_new/Protobuf/PSource/bsp_IV.pb.h b/project/paint_robot_new/Protobuf/PSource/bsp_IV.pb.h index e25af4a..423ef50 100644 --- a/project/paint_robot_new/Protobuf/PSource/bsp_IV.pb.h +++ b/project/paint_robot_new/Protobuf/PSource/bsp_IV.pb.h @@ -21,7 +21,6 @@ typedef struct _IV_struct_define { int32_t CurrentSpeed; /* 当前速度 */ int64_t TimeStamp; /* 当前时间戳 */ int32_t IsRestart; /* 是否重启 */ - int32_t STM_Version; /* 32程序版本 */ } IV_struct_define; @@ -30,8 +29,8 @@ extern "C" { #endif /* Initializer values for message structs */ -#define IV_struct_define_init_default {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} -#define IV_struct_define_init_zero {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} +#define IV_struct_define_init_default {0, 0, 0, 0, 0, 0, 0, 0, 0, 0} +#define IV_struct_define_init_zero {0, 0, 0, 0, 0, 0, 0, 0, 0, 0} /* Field tags (for use in manual encoding/decoding) */ #define IV_struct_define_CurrentAngle_tag 1 @@ -44,7 +43,6 @@ extern "C" { #define IV_struct_define_CurrentSpeed_tag 8 #define IV_struct_define_TimeStamp_tag 9 #define IV_struct_define_IsRestart_tag 10 -#define IV_struct_define_STM_Version_tag 11 /* Struct field encoding specification for nanopb */ #define IV_struct_define_FIELDLIST(X, a) \ @@ -57,8 +55,7 @@ X(a, STATIC, SINGULAR, INT32, Right_Motor_Err, 6) \ X(a, STATIC, SINGULAR, INT32, IsWorking, 7) \ X(a, STATIC, SINGULAR, INT32, CurrentSpeed, 8) \ X(a, STATIC, SINGULAR, INT64, TimeStamp, 9) \ -X(a, STATIC, SINGULAR, INT32, IsRestart, 10) \ -X(a, STATIC, SINGULAR, INT32, STM_Version, 11) +X(a, STATIC, SINGULAR, INT32, IsRestart, 10) #define IV_struct_define_CALLBACK NULL #define IV_struct_define_DEFAULT NULL @@ -69,7 +66,7 @@ extern const pb_msgdesc_t IV_struct_define_msg; /* Maximum encoded size of messages (where known) */ #define BSP_IV_PB_H_MAX_SIZE IV_struct_define_size -#define IV_struct_define_size 121 +#define IV_struct_define_size 110 #ifdef __cplusplus } /* extern "C" */ diff --git a/project/paint_robot_new/Protobuf/PSource/bsp_PV.pb.h b/project/paint_robot_new/Protobuf/PSource/bsp_PV.pb.h index a45fde5..ab46cca 100644 --- a/project/paint_robot_new/Protobuf/PSource/bsp_PV.pb.h +++ b/project/paint_robot_new/Protobuf/PSource/bsp_PV.pb.h @@ -18,7 +18,6 @@ typedef struct _PV_struct_define { double Vertical_Calibration; /* 1° */ int32_t IV_IsRestart_Notified; /* 是否接收到IV restart flag */ int64_t TimeStamp; /* */ - int32_t APP_Version; /* app程序版本 */ } PV_struct_define; @@ -27,8 +26,8 @@ extern "C" { #endif /* Initializer values for message structs */ -#define PV_struct_define_init_default {0, 0, 0, 0, 0, 0, 0} -#define PV_struct_define_init_zero {0, 0, 0, 0, 0, 0, 0} +#define PV_struct_define_init_default {0, 0, 0, 0, 0, 0} +#define PV_struct_define_init_zero {0, 0, 0, 0, 0, 0} /* Field tags (for use in manual encoding/decoding) */ #define PV_struct_define_RunMode_tag 1 @@ -37,7 +36,6 @@ extern "C" { #define PV_struct_define_Vertical_Calibration_tag 4 #define PV_struct_define_IV_IsRestart_Notified_tag 5 #define PV_struct_define_TimeStamp_tag 6 -#define PV_struct_define_APP_Version_tag 7 /* Struct field encoding specification for nanopb */ #define PV_struct_define_FIELDLIST(X, a) \ @@ -46,8 +44,7 @@ X(a, STATIC, SINGULAR, INT32, RobotSpeed, 2) \ X(a, STATIC, SINGULAR, INT32, LaneChangeDistance, 3) \ X(a, STATIC, SINGULAR, DOUBLE, Vertical_Calibration, 4) \ X(a, STATIC, SINGULAR, INT32, IV_IsRestart_Notified, 5) \ -X(a, STATIC, SINGULAR, INT64, TimeStamp, 6) \ -X(a, STATIC, SINGULAR, INT32, APP_Version, 7) +X(a, STATIC, SINGULAR, INT64, TimeStamp, 6) #define PV_struct_define_CALLBACK NULL #define PV_struct_define_DEFAULT NULL @@ -58,7 +55,7 @@ extern const pb_msgdesc_t PV_struct_define_msg; /* Maximum encoded size of messages (where known) */ #define BSP_PV_PB_H_MAX_SIZE PV_struct_define_size -#define PV_struct_define_size 75 +#define PV_struct_define_size 64 #ifdef __cplusplus } /* extern "C" */ diff --git a/project/paint_robot_new/Protobuf/Proto/bsp_IV.proto b/project/paint_robot_new/Protobuf/Proto/bsp_IV.proto index 7ca1f22..449f519 100644 --- a/project/paint_robot_new/Protobuf/Proto/bsp_IV.proto +++ b/project/paint_robot_new/Protobuf/Proto/bsp_IV.proto @@ -15,5 +15,4 @@ message IV_struct_define int32 CurrentSpeed=8;//当前速度 int64 TimeStamp=9;//当前时间戳 int32 IsRestart=10;//是否重启 - int32 STM_Version=11; //32程序版本 }; diff --git a/project/paint_robot_new/Protobuf/Proto/bsp_PV.proto b/project/paint_robot_new/Protobuf/Proto/bsp_PV.proto index fc44789..9fa4eac 100644 --- a/project/paint_robot_new/Protobuf/Proto/bsp_PV.proto +++ b/project/paint_robot_new/Protobuf/Proto/bsp_PV.proto @@ -10,6 +10,5 @@ message PV_struct_define{ double Vertical_Calibration=4;// 1° int32 IV_IsRestart_Notified=5;// 是否接收到IV restart flag int64 TimeStamp=6;// - int32 APP_Version=7; //app程序版本 };