|
|
|
@ -24,6 +24,8 @@ typedef struct _IV_struct_define { |
|
|
|
int32_t Robot_Current_Right; |
|
|
|
int32_t Robot_Error_Left; |
|
|
|
int32_t Robot_Error_Right; |
|
|
|
int32_t Robot_Compensation_Left; |
|
|
|
int32_t Robot_Compensation_Right; |
|
|
|
} IV_struct_define; |
|
|
|
|
|
|
|
|
|
|
|
@ -32,8 +34,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, 0} |
|
|
|
#define IV_struct_define_init_zero {0, 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, 0, 0, 0, 0} |
|
|
|
#define IV_struct_define_init_zero {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_Robot_Move_AutoSpeed_tag 1 |
|
|
|
@ -48,6 +50,8 @@ extern "C" { |
|
|
|
#define IV_struct_define_Robot_Current_Right_tag 10 |
|
|
|
#define IV_struct_define_Robot_Error_Left_tag 11 |
|
|
|
#define IV_struct_define_Robot_Error_Right_tag 12 |
|
|
|
#define IV_struct_define_Robot_Compensation_Left_tag 13 |
|
|
|
#define IV_struct_define_Robot_Compensation_Right_tag 14 |
|
|
|
|
|
|
|
/* Struct field encoding specification for nanopb */ |
|
|
|
#define IV_struct_define_FIELDLIST(X, a) \ |
|
|
|
@ -62,7 +66,9 @@ X(a, STATIC, SINGULAR, INT32, Robot_CurrentState, 8) \ |
|
|
|
X(a, STATIC, SINGULAR, INT32, Robot_Current_Left, 9) \ |
|
|
|
X(a, STATIC, SINGULAR, INT32, Robot_Current_Right, 10) \ |
|
|
|
X(a, STATIC, SINGULAR, INT32, Robot_Error_Left, 11) \ |
|
|
|
X(a, STATIC, SINGULAR, INT32, Robot_Error_Right, 12) |
|
|
|
X(a, STATIC, SINGULAR, INT32, Robot_Error_Right, 12) \ |
|
|
|
X(a, STATIC, SINGULAR, INT32, Robot_Compensation_Left, 13) \ |
|
|
|
X(a, STATIC, SINGULAR, INT32, Robot_Compensation_Right, 14) |
|
|
|
#define IV_struct_define_CALLBACK NULL |
|
|
|
#define IV_struct_define_DEFAULT NULL |
|
|
|
|
|
|
|
@ -73,7 +79,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 132 |
|
|
|
#define IV_struct_define_size 154 |
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
} /* extern "C" */ |
|
|
|
|