aboutsummaryrefslogtreecommitdiff
path: root/car/elegoo.pb.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-08-21 23:06:34 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-08-21 23:06:34 +0200
commit22bec7ba538aa7619bd4f742684c2007d1fe9e7c (patch)
treefa32b4ff3fc03ddcc4d4108a9a14c727959d2314 /car/elegoo.pb.c
parent3adc147fc0a70f18888949ac90441f24b9369b15 (diff)
motor commands
Diffstat (limited to 'car/elegoo.pb.c')
-rw-r--r--car/elegoo.pb.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/car/elegoo.pb.c b/car/elegoo.pb.c
index 570d496..5af0f71 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 Mon Aug 21 21:08:59 2017. */
+/* Generated by nanopb-0.3.6 at Mon Aug 21 22:55:02 2017. */
#include "elegoo.pb.h"
@@ -10,16 +10,17 @@
-const pb_field_t Command_fields[5] = {
- 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, SINT32 , OPTIONAL, STATIC , OTHER, Command, TurnHead, RightSpeed, 0),
- PB_FIELD( 4, BOOL , OPTIONAL, STATIC , OTHER, Command, Center, TurnHead, 0),
+const pb_field_t Command_fields[6] = {
+ PB_FIELD( 1, SINT32 , OPTIONAL, STATIC , FIRST, Command, SpeedR, SpeedR, 0),
+ PB_FIELD( 2, SINT32 , OPTIONAL, STATIC , OTHER, Command, SpeedL, SpeedR, 0),
+ PB_FIELD( 3, BOOL , OPTIONAL, STATIC , OTHER, Command, Stop, SpeedL, 0),
+ PB_FIELD( 4, SINT32 , OPTIONAL, STATIC , OTHER, Command, TurnHead, Stop, 0),
+ PB_FIELD( 5, BOOL , OPTIONAL, STATIC , OTHER, Command, Center, TurnHead, 0),
PB_LAST_FIELD
};
const pb_field_t Event_fields[6] = {
- PB_FIELD( 1, INT32 , OPTIONAL, STATIC , FIRST, Event, Distance, Distance, 0),
+ PB_FIELD( 1, UINT32 , OPTIONAL, STATIC , FIRST, Event, Distance, Distance, 0),
PB_FIELD( 2, BOOL , OPTIONAL, STATIC , OTHER, Event, SensorR, Distance, 0),
PB_FIELD( 3, BOOL , OPTIONAL, STATIC , OTHER, Event, SensorC, SensorR, 0),
PB_FIELD( 4, BOOL , OPTIONAL, STATIC , OTHER, Event, SensorL, SensorC, 0),