Tomas Johansen
/
nanopb_test
Nanopb (lightweight version of googles protobuf) test. It is not working as it should yet.
Embed:
(wiki syntax)
Show/hide line numbers
threeaxis.pb.c
00001 /* Automatically generated nanopb constant definitions */ 00002 /* Generated by nanopb-0.2.5 at Wed Feb 05 22:39:14 2014. */ 00003 00004 #include "threeaxis.pb.h" 00005 00006 00007 00008 const pb_field_t status_message_fields[4] = { 00009 PB_FIELD2( 1, FLOAT , REQUIRED, STATIC , FIRST, status_message, BatteryLevel, BatteryLevel, 0), 00010 PB_FIELD2( 2, INT32 , REQUIRED, STATIC , OTHER, status_message, Frequency, BatteryLevel, 0), 00011 PB_FIELD2( 3, INT32 , REQUIRED, STATIC , OTHER, status_message, Mode, Frequency, 0), 00012 PB_LAST_FIELD 00013 }; 00014 00015 const pb_field_t imu_message_fields[4] = { 00016 PB_FIELD2( 1, FLOAT , REQUIRED, STATIC , FIRST, imu_message, X, X, 0), 00017 PB_FIELD2( 2, FLOAT , REQUIRED, STATIC , OTHER, imu_message, Y, X, 0), 00018 PB_FIELD2( 3, FLOAT , REQUIRED, STATIC , OTHER, imu_message, Z, Y, 0), 00019 PB_LAST_FIELD 00020 }; 00021 00022 const pb_field_t gyro_message_fields[4] = { 00023 PB_FIELD2( 1, FLOAT , REQUIRED, STATIC , FIRST, gyro_message, X, X, 0), 00024 PB_FIELD2( 2, FLOAT , REQUIRED, STATIC , OTHER, gyro_message, Y, X, 0), 00025 PB_FIELD2( 3, FLOAT , REQUIRED, STATIC , OTHER, gyro_message, Z, Y, 0), 00026 PB_LAST_FIELD 00027 }; 00028 00029 const pb_field_t acc_message_fields[4] = { 00030 PB_FIELD2( 1, FLOAT , REQUIRED, STATIC , FIRST, acc_message, X, X, 0), 00031 PB_FIELD2( 2, FLOAT , REQUIRED, STATIC , OTHER, acc_message, Y, X, 0), 00032 PB_FIELD2( 3, FLOAT , REQUIRED, STATIC , OTHER, acc_message, Z, Y, 0), 00033 PB_LAST_FIELD 00034 }; 00035 00036 const pb_field_t motor_message_fields[7] = { 00037 PB_FIELD2( 1, INT32 , REQUIRED, STATIC , FIRST, motor_message, m1, m1, 0), 00038 PB_FIELD2( 2, INT32 , REQUIRED, STATIC , OTHER, motor_message, m2, m1, 0), 00039 PB_FIELD2( 3, INT32 , REQUIRED, STATIC , OTHER, motor_message, m3, m2, 0), 00040 PB_FIELD2( 4, INT32 , REQUIRED, STATIC , OTHER, motor_message, m4, m3, 0), 00041 PB_FIELD2( 5, INT32 , REQUIRED, STATIC , OTHER, motor_message, m5, m4, 0), 00042 PB_FIELD2( 6, INT32 , REQUIRED, STATIC , OTHER, motor_message, m6, m5, 0), 00043 PB_LAST_FIELD 00044 }; 00045 00046 00047
Generated on Thu Jul 14 2022 19:55:28 by 1.7.2