/* Automatically generated nanopb header */ /* Generated by nanopb-0.4.8 */ #ifndef PB_BSP_IV_PB_H_INCLUDED #define PB_BSP_IV_PB_H_INCLUDED #include "pb.h" #if PB_PROTO_HEADER_VERSION != 40 #error Regenerate this file with the current version of nanopb generator. #endif /* Struct definitions */ typedef struct _IV_struct_define { int32_t CurrentAngle; /* 单位0.01° */ int32_t RobotMoveSpeed; /* 单位m/min */ int32_t SBUS_State; /* 0断开 1连接 */ int32_t SystemError; /* 硬件通讯错误及按键未初始化错误 */ int32_t Left_Motor_Err; /* 左轮电机报警 */ int32_t Right_Motor_Err; /* 右轮电机报警 */ int32_t IsWorking; /* 机器人正在执行运动指令 */ int32_t blowers_pwm; /* 风机PWM调速,0-100 */ float ForceValue; /* 压强传感器-100~100Kpa */ int32_t CurrentDirection; /* 电子罗盘,单位0.01° */ int32_t CurrentHeight; /* 拉线传感器,cm */ } IV_struct_define; #ifdef __cplusplus 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} /* Field tags (for use in manual encoding/decoding) */ #define IV_struct_define_CurrentAngle_tag 1 #define IV_struct_define_RobotMoveSpeed_tag 2 #define IV_struct_define_SBUS_State_tag 3 #define IV_struct_define_SystemError_tag 4 #define IV_struct_define_Left_Motor_Err_tag 5 #define IV_struct_define_Right_Motor_Err_tag 6 #define IV_struct_define_IsWorking_tag 7 #define IV_struct_define_blowers_pwm_tag 8 #define IV_struct_define_ForceValue_tag 9 #define IV_struct_define_CurrentDirection_tag 10 #define IV_struct_define_CurrentHeight_tag 11 /* Struct field encoding specification for nanopb */ #define IV_struct_define_FIELDLIST(X, a) \ X(a, STATIC, SINGULAR, INT32, CurrentAngle, 1) \ X(a, STATIC, SINGULAR, INT32, RobotMoveSpeed, 2) \ X(a, STATIC, SINGULAR, INT32, SBUS_State, 3) \ X(a, STATIC, SINGULAR, INT32, SystemError, 4) \ X(a, STATIC, SINGULAR, INT32, Left_Motor_Err, 5) \ X(a, STATIC, SINGULAR, INT32, Right_Motor_Err, 6) \ X(a, STATIC, SINGULAR, INT32, IsWorking, 7) \ X(a, STATIC, SINGULAR, INT32, blowers_pwm, 8) \ X(a, STATIC, SINGULAR, FLOAT, ForceValue, 9) \ X(a, STATIC, SINGULAR, INT32, CurrentDirection, 10) \ X(a, STATIC, SINGULAR, INT32, CurrentHeight, 11) #define IV_struct_define_CALLBACK NULL #define IV_struct_define_DEFAULT NULL extern const pb_msgdesc_t IV_struct_define_msg; /* Defines for backwards compatibility with code written before nanopb-0.4.0 */ #define IV_struct_define_fields &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 115 #ifdef __cplusplus } /* extern "C" */ #endif #endif