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

130 lines
5.3 KiB

/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.8 */
#ifndef PB_MSP_ZQ_MOTORPARAMETERS_PB_H_INCLUDED
#define PB_MSP_ZQ_MOTORPARAMETERS_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 _TT_MotorParameters {
int32_t MotorID;
int32_t Real_Current;
int32_t Target_Current;
int32_t Real_Velcity;
int32_t Target_Velcity;
int32_t Target_Position;
int32_t Act_Suc;
int32_t Cont_Posi_Suc;
int32_t Acc_Suc;
int32_t Dec_Suc;
int32_t Target_Posi_Suc;
int32_t Run_Speed_Suc;
int32_t Clear_Suc;
int32_t Real_Position;
int32_t Acc_Suc_Speed;
int32_t Dec_Suc_Speed;
int32_t Suc_Speed_S;
int32_t TT_Motor_Fault;
int32_t AccTime;
int32_t DecTime;
int32_t Number_Of_Rounds;
int32_t Start_Measuring_Position;
int32_t Last_Real_Position;
double Real_Disatnce;
int32_t Start_Measuring; /* 开始测距 */
int32_t Position_immediately1_Lag2; /* 位置环模式,立即生效1,延后生效2 */
int32_t Tar_Position_count; /* 位置环模式,期望位置 */
int32_t Tar_Position_Velcity_RPM; /* 位置环模式,速度 */
} TT_MotorParameters;
#ifdef __cplusplus
extern "C" {
#endif
/* Initializer values for message structs */
#define TT_MotorParameters_init_default {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
#define TT_MotorParameters_init_zero {0, 0, 0, 0, 0, 0, 0, 0, 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 TT_MotorParameters_MotorID_tag 1
#define TT_MotorParameters_Real_Current_tag 4
#define TT_MotorParameters_Target_Current_tag 5
#define TT_MotorParameters_Real_Velcity_tag 6
#define TT_MotorParameters_Target_Velcity_tag 7
#define TT_MotorParameters_Target_Position_tag 8
#define TT_MotorParameters_Act_Suc_tag 25
#define TT_MotorParameters_Cont_Posi_Suc_tag 26
#define TT_MotorParameters_Acc_Suc_tag 27
#define TT_MotorParameters_Dec_Suc_tag 28
#define TT_MotorParameters_Target_Posi_Suc_tag 29
#define TT_MotorParameters_Run_Speed_Suc_tag 30
#define TT_MotorParameters_Clear_Suc_tag 31
#define TT_MotorParameters_Real_Position_tag 32
#define TT_MotorParameters_Acc_Suc_Speed_tag 33
#define TT_MotorParameters_Dec_Suc_Speed_tag 34
#define TT_MotorParameters_Suc_Speed_S_tag 35
#define TT_MotorParameters_TT_Motor_Fault_tag 36
#define TT_MotorParameters_AccTime_tag 37
#define TT_MotorParameters_DecTime_tag 38
#define TT_MotorParameters_Number_Of_Rounds_tag 39
#define TT_MotorParameters_Start_Measuring_Position_tag 40
#define TT_MotorParameters_Last_Real_Position_tag 43
#define TT_MotorParameters_Real_Disatnce_tag 44
#define TT_MotorParameters_Start_Measuring_tag 45
#define TT_MotorParameters_Position_immediately1_Lag2_tag 46
#define TT_MotorParameters_Tar_Position_count_tag 47
#define TT_MotorParameters_Tar_Position_Velcity_RPM_tag 49
/* Struct field encoding specification for nanopb */
#define TT_MotorParameters_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, INT32, MotorID, 1) \
X(a, STATIC, SINGULAR, INT32, Real_Current, 4) \
X(a, STATIC, SINGULAR, INT32, Target_Current, 5) \
X(a, STATIC, SINGULAR, INT32, Real_Velcity, 6) \
X(a, STATIC, SINGULAR, INT32, Target_Velcity, 7) \
X(a, STATIC, SINGULAR, INT32, Target_Position, 8) \
X(a, STATIC, SINGULAR, INT32, Act_Suc, 25) \
X(a, STATIC, SINGULAR, INT32, Cont_Posi_Suc, 26) \
X(a, STATIC, SINGULAR, INT32, Acc_Suc, 27) \
X(a, STATIC, SINGULAR, INT32, Dec_Suc, 28) \
X(a, STATIC, SINGULAR, INT32, Target_Posi_Suc, 29) \
X(a, STATIC, SINGULAR, INT32, Run_Speed_Suc, 30) \
X(a, STATIC, SINGULAR, INT32, Clear_Suc, 31) \
X(a, STATIC, SINGULAR, INT32, Real_Position, 32) \
X(a, STATIC, SINGULAR, INT32, Acc_Suc_Speed, 33) \
X(a, STATIC, SINGULAR, INT32, Dec_Suc_Speed, 34) \
X(a, STATIC, SINGULAR, INT32, Suc_Speed_S, 35) \
X(a, STATIC, SINGULAR, INT32, TT_Motor_Fault, 36) \
X(a, STATIC, SINGULAR, INT32, AccTime, 37) \
X(a, STATIC, SINGULAR, INT32, DecTime, 38) \
X(a, STATIC, SINGULAR, INT32, Number_Of_Rounds, 39) \
X(a, STATIC, SINGULAR, INT32, Start_Measuring_Position, 40) \
X(a, STATIC, SINGULAR, INT32, Last_Real_Position, 43) \
X(a, STATIC, SINGULAR, DOUBLE, Real_Disatnce, 44) \
X(a, STATIC, SINGULAR, INT32, Start_Measuring, 45) \
X(a, STATIC, SINGULAR, INT32, Position_immediately1_Lag2, 46) \
X(a, STATIC, SINGULAR, INT32, Tar_Position_count, 47) \
X(a, STATIC, SINGULAR, INT32, Tar_Position_Velcity_RPM, 49)
#define TT_MotorParameters_CALLBACK NULL
#define TT_MotorParameters_DEFAULT NULL
extern const pb_msgdesc_t TT_MotorParameters_msg;
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
#define TT_MotorParameters_fields &TT_MotorParameters_msg
/* Maximum encoded size of messages (where known) */
#define MSP_ZQ_MOTORPARAMETERS_PB_H_MAX_SIZE TT_MotorParameters_size
#define TT_MotorParameters_size 328
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif