仓库提交练习
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.

148 lines
6.9 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"
#include "bsp_PV.pb.h"
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
/* Struct definitions */
/* 抛丸机器人状态采集参数结构体(IV:Input/Status Value)
APP/ */
typedef struct _IV_struct_define {
/* 左侧补偿值(摆臂/位置角度补偿)
÷ 100 = °100 1°250 2.5° */
int32_t LeftCompensation;
/* 右侧补偿值(摆臂/位置角度补偿)
÷ 100 = °100 1°300 3° */
int32_t RightCompensation;
/* 机器人实际移动速度(派生采集值)
÷ 10 = m/min100 10m/min180 18m/min
0~18m/min的速度范围 */
int32_t Robot_Move_Deri_Speed;
/* 机器人陀螺仪角度(姿态检测)
÷ 100 = °100 1°9000 90°
姿//姿 */
int32_t Robot_Gyro;
/* 距离传感器采集值(测距/避障)
÷ 10 = cm100 10cm500 50cm
/ */
int32_t Distance_Sensor;
/* 系统级错误码
0 = 0 =
*/
int32_t SystemError;
/* 左轮电机报警状态
0 = 1 = //
*/
int32_t Left_Motor_Err;
/* 右轮电机报警状态
0 = 1 = //
*/
int32_t Right_Motor_Err;
/* 摆臂电机报警状态
0 = 1 = //
/25°/S的作业要求 */
int32_t Swing_Motor_Err;
/* 机器人在线状态
0 = 线1 = 线
APP/线 */
int32_t Is_Online;
/* 备用数据1
/ */
int32_t Spara_Data_1;
/* 备用数据2
/ */
int32_t Spara_Data_2;
/* 备用数据3
/ */
int32_t Spara_Data_3;
/* 焊缝数据 */
int32_t Weld_data;
/* 焊缝是否存在 */
int32_t Weld_exist;
/* 回转中心偏距 */
int32_t Turn_difference;
/* 当前压力 */
int32_t Present_press;
int32_t left_angle;
int32_t right_angle;
/* 检测机器人是否到达设定的启动时间 */
int32_t robot_start;
} 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, 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, 0, 0, 0, 0}
/* Field tags (for use in manual encoding/decoding) */
#define IV_struct_define_LeftCompensation_tag 1
#define IV_struct_define_RightCompensation_tag 2
#define IV_struct_define_Robot_Move_Deri_Speed_tag 3
#define IV_struct_define_Robot_Gyro_tag 4
#define IV_struct_define_Distance_Sensor_tag 5
#define IV_struct_define_SystemError_tag 6
#define IV_struct_define_Left_Motor_Err_tag 7
#define IV_struct_define_Right_Motor_Err_tag 8
#define IV_struct_define_Swing_Motor_Err_tag 9
#define IV_struct_define_Is_Online_tag 10
#define IV_struct_define_Spara_Data_1_tag 11
#define IV_struct_define_Spara_Data_2_tag 12
#define IV_struct_define_Spara_Data_3_tag 13
#define IV_struct_define_Weld_data_tag 14
#define IV_struct_define_Weld_exist_tag 15
#define IV_struct_define_Turn_difference_tag 16
#define IV_struct_define_Present_press_tag 17
#define IV_struct_define_left_angle_tag 18
#define IV_struct_define_right_angle_tag 19
#define IV_struct_define_robot_start_tag 20
/* Struct field encoding specification for nanopb */
#define IV_struct_define_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, INT32, LeftCompensation, 1) \
X(a, STATIC, SINGULAR, INT32, RightCompensation, 2) \
X(a, STATIC, SINGULAR, INT32, Robot_Move_Deri_Speed, 3) \
X(a, STATIC, SINGULAR, INT32, Robot_Gyro, 4) \
X(a, STATIC, SINGULAR, INT32, Distance_Sensor, 5) \
X(a, STATIC, SINGULAR, INT32, SystemError, 6) \
X(a, STATIC, SINGULAR, INT32, Left_Motor_Err, 7) \
X(a, STATIC, SINGULAR, INT32, Right_Motor_Err, 8) \
X(a, STATIC, SINGULAR, INT32, Swing_Motor_Err, 9) \
X(a, STATIC, SINGULAR, INT32, Is_Online, 10) \
X(a, STATIC, SINGULAR, INT32, Spara_Data_1, 11) \
X(a, STATIC, SINGULAR, INT32, Spara_Data_2, 12) \
X(a, STATIC, SINGULAR, INT32, Spara_Data_3, 13) \
X(a, STATIC, SINGULAR, INT32, Weld_data, 14) \
X(a, STATIC, SINGULAR, INT32, Weld_exist, 15) \
X(a, STATIC, SINGULAR, INT32, Turn_difference, 16) \
X(a, STATIC, SINGULAR, INT32, Present_press, 17) \
X(a, STATIC, SINGULAR, INT32, left_angle, 18) \
X(a, STATIC, SINGULAR, INT32, right_angle, 19) \
X(a, STATIC, SINGULAR, INT32, robot_start, 20)
#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 225
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif