From 22bec7ba538aa7619bd4f742684c2007d1fe9e7c Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 21 Aug 2017 23:06:34 +0200 Subject: motor commands --- car/elegoo.pb.h | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) (limited to 'car/elegoo.pb.h') diff --git a/car/elegoo.pb.h b/car/elegoo.pb.h index 29865ad..4a0e918 100644 --- a/car/elegoo.pb.h +++ b/car/elegoo.pb.h @@ -1,5 +1,5 @@ /* Automatically generated nanopb header */ -/* Generated by nanopb-0.3.6 at Mon Aug 21 21:08:59 2017. */ +/* Generated by nanopb-0.3.6 at Mon Aug 21 22:55:02 2017. */ #ifndef PB_ELEGOO_PB_H_INCLUDED #define PB_ELEGOO_PB_H_INCLUDED @@ -16,10 +16,12 @@ extern "C" { /* Struct definitions */ typedef struct _Command { - bool has_LeftSpeed; - int32_t LeftSpeed; - bool has_RightSpeed; - int32_t RightSpeed; + bool has_SpeedR; + int32_t SpeedR; + bool has_SpeedL; + int32_t SpeedL; + bool has_Stop; + bool Stop; bool has_TurnHead; int32_t TurnHead; bool has_Center; @@ -29,7 +31,7 @@ typedef struct _Command { typedef struct _Event { bool has_Distance; - int32_t Distance; + uint32_t Distance; bool has_SensorR; bool SensorR; bool has_SensorC; @@ -44,16 +46,17 @@ typedef struct _Event { /* Default values for struct fields */ /* Initializer values for message structs */ -#define Command_init_default {false, 0, false, 0, false, 0, false, 0} +#define Command_init_default {false, 0, false, 0, false, 0, false, 0, false, 0} #define Event_init_default {false, 0, false, 0, false, 0, false, 0, false, 0} -#define Command_init_zero {false, 0, false, 0, false, 0, false, 0} +#define Command_init_zero {false, 0, false, 0, false, 0, false, 0, false, 0} #define Event_init_zero {false, 0, false, 0, false, 0, false, 0, false, 0} /* Field tags (for use in manual encoding/decoding) */ -#define Command_LeftSpeed_tag 1 -#define Command_RightSpeed_tag 2 -#define Command_TurnHead_tag 3 -#define Command_Center_tag 4 +#define Command_SpeedR_tag 1 +#define Command_SpeedL_tag 2 +#define Command_Stop_tag 3 +#define Command_TurnHead_tag 4 +#define Command_Center_tag 5 #define Event_Distance_tag 1 #define Event_SensorR_tag 2 #define Event_SensorC_tag 3 @@ -61,12 +64,12 @@ typedef struct _Event { #define Event_KeyPress_tag 5 /* Struct field encoding specification for nanopb */ -extern const pb_field_t Command_fields[5]; +extern const pb_field_t Command_fields[6]; extern const pb_field_t Event_fields[6]; /* Maximum encoded size of messages (where known) */ -#define Command_size 30 -#define Event_size 23 +#define Command_size 22 +#define Event_size 18 /* Message IDs (where set with "msgid" option) */ #ifdef PB_MSGID -- cgit v1.2.3