售出,L27/28,大板。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
3.7 KiB

/* 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 Press; /* 实时压力 */
int32_t RunMode;
int32_t LeftCompensation; /* 单位0.01° */
int32_t RightCompensation; /* 单位0.01° */
int32_t CurrentAngle; /* 单位0.01° */
double RobotMoveSpeed; /* 单位m/min */
int32_t SystemError; /* 硬件通讯错误及按键未初始化错误 */
int32_t Left_Motor_Err; /* 左轮电机报警 */
int32_t Right_Motor_Err; /* 右轮电机报警 */
int32_t Left_Motor_Temp; /* 左轮电机温度 */
int32_t Right_Motor_Temp; /* 右轮电机温度 */
int32_t IsWorking; /* 机器人正在执行运动指令 */
int64_t TimeStamp; /* 当前时间戳 */
int32_t RobotRestart; /* 是否重启 */
double CurrentSpeed; /* 当前速度 */
int32_t SBUS_State; /* 0断开 1连接 */
} 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, 0, 0, 0, 0, 0}
#define IV_struct_define_init_zero {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
/* Field tags (for use in manual encoding/decoding) */
#define IV_struct_define_Press_tag 1
#define IV_struct_define_RunMode_tag 2
#define IV_struct_define_LeftCompensation_tag 3
#define IV_struct_define_RightCompensation_tag 4
#define IV_struct_define_CurrentAngle_tag 5
#define IV_struct_define_RobotMoveSpeed_tag 6
#define IV_struct_define_SystemError_tag 7
#define IV_struct_define_Left_Motor_Err_tag 8
#define IV_struct_define_Right_Motor_Err_tag 9
#define IV_struct_define_Left_Motor_Temp_tag 10
#define IV_struct_define_Right_Motor_Temp_tag 11
#define IV_struct_define_IsWorking_tag 12
#define IV_struct_define_TimeStamp_tag 13
#define IV_struct_define_RobotRestart_tag 14
#define IV_struct_define_CurrentSpeed_tag 15
#define IV_struct_define_SBUS_State_tag 16
/* Struct field encoding specification for nanopb */
#define IV_struct_define_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, INT32, Press, 1) \
X(a, STATIC, SINGULAR, INT32, RunMode, 2) \
X(a, STATIC, SINGULAR, INT32, LeftCompensation, 3) \
X(a, STATIC, SINGULAR, INT32, RightCompensation, 4) \
X(a, STATIC, SINGULAR, INT32, CurrentAngle, 5) \
X(a, STATIC, SINGULAR, DOUBLE, RobotMoveSpeed, 6) \
X(a, STATIC, SINGULAR, INT32, SystemError, 7) \
X(a, STATIC, SINGULAR, INT32, Left_Motor_Err, 8) \
X(a, STATIC, SINGULAR, INT32, Right_Motor_Err, 9) \
X(a, STATIC, SINGULAR, INT32, Left_Motor_Temp, 10) \
X(a, STATIC, SINGULAR, INT32, Right_Motor_Temp, 11) \
X(a, STATIC, SINGULAR, INT32, IsWorking, 12) \
X(a, STATIC, SINGULAR, INT64, TimeStamp, 13) \
X(a, STATIC, SINGULAR, INT32, RobotRestart, 14) \
X(a, STATIC, SINGULAR, DOUBLE, CurrentSpeed, 15) \
X(a, STATIC, SINGULAR, INT32, SBUS_State, 16)
#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 173
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif