aboutsummaryrefslogtreecommitdiff
path: root/car/elegoo.pb.c
diff options
context:
space:
mode:
Diffstat (limited to 'car/elegoo.pb.c')
-rw-r--r--car/elegoo.pb.c39
1 files changed, 5 insertions, 34 deletions
diff --git a/car/elegoo.pb.c b/car/elegoo.pb.c
index 1a268f4..e968fc9 100644
--- a/car/elegoo.pb.c
+++ b/car/elegoo.pb.c
@@ -1,5 +1,5 @@
/* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.3.6 at Tue Jan 24 21:09:08 2017. */
+/* Generated by nanopb-0.3.6 at Sun Aug 20 16:43:10 2017. */
#include "elegoo.pb.h"
@@ -10,15 +10,10 @@
-const pb_field_t Command_fields[3] = {
- PB_FIELD( 1, MESSAGE , OPTIONAL, STATIC , FIRST, Command, SetSpeed, SetSpeed, &Speed_fields),
- PB_FIELD( 2, BOOL , OPTIONAL, STATIC , OTHER, Command, Stop, SetSpeed, 0),
- PB_LAST_FIELD
-};
-
-const pb_field_t Speed_fields[3] = {
- PB_FIELD( 1, INT32 , OPTIONAL, STATIC , FIRST, Speed, Left, Left, 0),
- PB_FIELD( 2, INT32 , OPTIONAL, STATIC , OTHER, Speed, Right, Left, 0),
+const pb_field_t Command_fields[4] = {
+ PB_FIELD( 1, INT32 , OPTIONAL, STATIC , FIRST, Command, LeftSpeed, LeftSpeed, 0),
+ PB_FIELD( 2, INT32 , OPTIONAL, STATIC , OTHER, Command, RightSpeed, LeftSpeed, 0),
+ PB_FIELD( 3, INT32 , OPTIONAL, STATIC , OTHER, Command, TurnHead, RightSpeed, 0),
PB_LAST_FIELD
};
@@ -31,28 +26,4 @@ const pb_field_t Event_fields[5] = {
};
-/* Check that field information fits in pb_field_t */
-#if !defined(PB_FIELD_32BIT)
-/* If you get an error here, it means that you need to define PB_FIELD_32BIT
- * compile-time option. You can do that in pb.h or on compiler command line.
- *
- * The reason you need to do this is that some of your messages contain tag
- * numbers or field sizes that are larger than what can fit in 8 or 16 bit
- * field descriptors.
- */
-PB_STATIC_ASSERT((pb_membersize(Command, SetSpeed) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_Command_Speed_Event)
-#endif
-
-#if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT)
-/* If you get an error here, it means that you need to define PB_FIELD_16BIT
- * compile-time option. You can do that in pb.h or on compiler command line.
- *
- * The reason you need to do this is that some of your messages contain tag
- * numbers or field sizes that are larger than what can fit in the default
- * 8 bit descriptors.
- */
-PB_STATIC_ASSERT((pb_membersize(Command, SetSpeed) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_Command_Speed_Event)
-#endif
-
-
/* @@protoc_insertion_point(eof) */