Nanopb (lightweight version of googles protobuf) test. It is not working as it should yet.

Dependencies:   MODSERIAL mbed

Committer:
Tomas
Date:
Wed Apr 09 11:44:14 2014 +0000
Revision:
3:fd0e1bc80f78
Parent:
0:bada2c7bd577
removed unnecessary libraries

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Tomas 0:bada2c7bd577 1 /* Automatically generated nanopb constant definitions */
Tomas 0:bada2c7bd577 2 /* Generated by nanopb-0.2.5 at Wed Feb 05 22:39:14 2014. */
Tomas 0:bada2c7bd577 3
Tomas 0:bada2c7bd577 4 #include "threeaxis.pb.h"
Tomas 0:bada2c7bd577 5
Tomas 0:bada2c7bd577 6
Tomas 0:bada2c7bd577 7
Tomas 0:bada2c7bd577 8 const pb_field_t status_message_fields[4] = {
Tomas 0:bada2c7bd577 9 PB_FIELD2( 1, FLOAT , REQUIRED, STATIC , FIRST, status_message, BatteryLevel, BatteryLevel, 0),
Tomas 0:bada2c7bd577 10 PB_FIELD2( 2, INT32 , REQUIRED, STATIC , OTHER, status_message, Frequency, BatteryLevel, 0),
Tomas 0:bada2c7bd577 11 PB_FIELD2( 3, INT32 , REQUIRED, STATIC , OTHER, status_message, Mode, Frequency, 0),
Tomas 0:bada2c7bd577 12 PB_LAST_FIELD
Tomas 0:bada2c7bd577 13 };
Tomas 0:bada2c7bd577 14
Tomas 0:bada2c7bd577 15 const pb_field_t imu_message_fields[4] = {
Tomas 0:bada2c7bd577 16 PB_FIELD2( 1, FLOAT , REQUIRED, STATIC , FIRST, imu_message, X, X, 0),
Tomas 0:bada2c7bd577 17 PB_FIELD2( 2, FLOAT , REQUIRED, STATIC , OTHER, imu_message, Y, X, 0),
Tomas 0:bada2c7bd577 18 PB_FIELD2( 3, FLOAT , REQUIRED, STATIC , OTHER, imu_message, Z, Y, 0),
Tomas 0:bada2c7bd577 19 PB_LAST_FIELD
Tomas 0:bada2c7bd577 20 };
Tomas 0:bada2c7bd577 21
Tomas 0:bada2c7bd577 22 const pb_field_t gyro_message_fields[4] = {
Tomas 0:bada2c7bd577 23 PB_FIELD2( 1, FLOAT , REQUIRED, STATIC , FIRST, gyro_message, X, X, 0),
Tomas 0:bada2c7bd577 24 PB_FIELD2( 2, FLOAT , REQUIRED, STATIC , OTHER, gyro_message, Y, X, 0),
Tomas 0:bada2c7bd577 25 PB_FIELD2( 3, FLOAT , REQUIRED, STATIC , OTHER, gyro_message, Z, Y, 0),
Tomas 0:bada2c7bd577 26 PB_LAST_FIELD
Tomas 0:bada2c7bd577 27 };
Tomas 0:bada2c7bd577 28
Tomas 0:bada2c7bd577 29 const pb_field_t acc_message_fields[4] = {
Tomas 0:bada2c7bd577 30 PB_FIELD2( 1, FLOAT , REQUIRED, STATIC , FIRST, acc_message, X, X, 0),
Tomas 0:bada2c7bd577 31 PB_FIELD2( 2, FLOAT , REQUIRED, STATIC , OTHER, acc_message, Y, X, 0),
Tomas 0:bada2c7bd577 32 PB_FIELD2( 3, FLOAT , REQUIRED, STATIC , OTHER, acc_message, Z, Y, 0),
Tomas 0:bada2c7bd577 33 PB_LAST_FIELD
Tomas 0:bada2c7bd577 34 };
Tomas 0:bada2c7bd577 35
Tomas 0:bada2c7bd577 36 const pb_field_t motor_message_fields[7] = {
Tomas 0:bada2c7bd577 37 PB_FIELD2( 1, INT32 , REQUIRED, STATIC , FIRST, motor_message, m1, m1, 0),
Tomas 0:bada2c7bd577 38 PB_FIELD2( 2, INT32 , REQUIRED, STATIC , OTHER, motor_message, m2, m1, 0),
Tomas 0:bada2c7bd577 39 PB_FIELD2( 3, INT32 , REQUIRED, STATIC , OTHER, motor_message, m3, m2, 0),
Tomas 0:bada2c7bd577 40 PB_FIELD2( 4, INT32 , REQUIRED, STATIC , OTHER, motor_message, m4, m3, 0),
Tomas 0:bada2c7bd577 41 PB_FIELD2( 5, INT32 , REQUIRED, STATIC , OTHER, motor_message, m5, m4, 0),
Tomas 0:bada2c7bd577 42 PB_FIELD2( 6, INT32 , REQUIRED, STATIC , OTHER, motor_message, m6, m5, 0),
Tomas 0:bada2c7bd577 43 PB_LAST_FIELD
Tomas 0:bada2c7bd577 44 };
Tomas 0:bada2c7bd577 45
Tomas 0:bada2c7bd577 46
Tomas 0:bada2c7bd577 47