Skip to content

Commit 4b6666a

Browse files
committed
GPS - add pb with responses
1 parent f3286ef commit 4b6666a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/protos/gps.pb.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ typedef struct _wippersnapper_gps_GPSConfig {
1818
/* Baud rate is not included here as it is included in the UartAdd->UartSerialConfig message. */
1919
pb_size_t commands_count;
2020
char commands[16][90]; /* * List of commands to configure the GPS * */
21+
pb_size_t responses_count;
22+
char responses[16][90]; /* * List of corresponding responses to the commands * */
2123
} wippersnapper_gps_GPSConfig;
2224

2325
/* * GPSDateTime represents the date and time information from a GPRMC/GPGGA string * */
@@ -65,17 +67,18 @@ extern "C" {
6567
#endif
6668

6769
/* Initializer values for message structs */
68-
#define wippersnapper_gps_GPSConfig_init_default {0, {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""}}
70+
#define wippersnapper_gps_GPSConfig_init_default {0, {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""}, 0, {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""}}
6971
#define wippersnapper_gps_GPSDateTime_init_default {0, 0, 0, 0, 0, 0, 0}
7072
#define wippersnapper_gps_GPSRMCResponse_init_default {false, wippersnapper_gps_GPSDateTime_init_default, "", "", "", "", "", "", ""}
7173
#define wippersnapper_gps_GPGGAResponse_init_default {false, wippersnapper_gps_GPSDateTime_init_default, "", "", "", "", 0, 0, "", "", ""}
72-
#define wippersnapper_gps_GPSConfig_init_zero {0, {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""}}
74+
#define wippersnapper_gps_GPSConfig_init_zero {0, {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""}, 0, {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""}}
7375
#define wippersnapper_gps_GPSDateTime_init_zero {0, 0, 0, 0, 0, 0, 0}
7476
#define wippersnapper_gps_GPSRMCResponse_init_zero {false, wippersnapper_gps_GPSDateTime_init_zero, "", "", "", "", "", "", ""}
7577
#define wippersnapper_gps_GPGGAResponse_init_zero {false, wippersnapper_gps_GPSDateTime_init_zero, "", "", "", "", 0, 0, "", "", ""}
7678

7779
/* Field tags (for use in manual encoding/decoding) */
7880
#define wippersnapper_gps_GPSConfig_commands_tag 1
81+
#define wippersnapper_gps_GPSConfig_responses_tag 2
7982
#define wippersnapper_gps_GPSDateTime_hour_tag 1
8083
#define wippersnapper_gps_GPSDateTime_minute_tag 2
8184
#define wippersnapper_gps_GPSDateTime_seconds_tag 3
@@ -104,7 +107,8 @@ extern "C" {
104107

105108
/* Struct field encoding specification for nanopb */
106109
#define wippersnapper_gps_GPSConfig_FIELDLIST(X, a) \
107-
X(a, STATIC, REPEATED, STRING, commands, 1)
110+
X(a, STATIC, REPEATED, STRING, commands, 1) \
111+
X(a, STATIC, REPEATED, STRING, responses, 2)
108112
#define wippersnapper_gps_GPSConfig_CALLBACK NULL
109113
#define wippersnapper_gps_GPSConfig_DEFAULT NULL
110114

@@ -161,7 +165,7 @@ extern const pb_msgdesc_t wippersnapper_gps_GPGGAResponse_msg;
161165
/* Maximum encoded size of messages (where known) */
162166
#define WIPPERSNAPPER_GPS_GPS_PB_H_MAX_SIZE wippersnapper_gps_GPSConfig_size
163167
#define wippersnapper_gps_GPGGAResponse_size 168
164-
#define wippersnapper_gps_GPSConfig_size 1456
168+
#define wippersnapper_gps_GPSConfig_size 2912
165169
#define wippersnapper_gps_GPSDateTime_size 77
166170
#define wippersnapper_gps_GPSRMCResponse_size 139
167171

0 commit comments

Comments
 (0)