Index: Accel.h =================================================================== diff -u -r9a59cef171550b5a9cb4f3028520c5d3f9d0c4c0 -r292ca9b827adfe0e928bf116275d0c4a1b116583 --- Accel.h (.../Accel.h) (revision 9a59cef171550b5a9cb4f3028520c5d3f9d0c4c0) +++ Accel.h (.../Accel.h) (revision 292ca9b827adfe0e928bf116275d0c4a1b116583) @@ -38,6 +38,20 @@ NUM_OF_ACCEL_AXES ///< Number of accelerometer axes } ACCEL_AXIS_T; +/// Record structure for broadcast accelerometer data +typedef struct +{ + F32 x; ///< X axis reading (in g) + F32 y; ///< Y axis reading (in g) + F32 z; ///< Z axis reading (in g) + F32 xMax; ///< X axis max reading (in g) + F32 yMax; ///< Y axis max reading (in g) + F32 zMax; ///< Z axis max reading - 1.0 (in g) + F32 xTilt; ///< X axis tilt (in degrees) + F32 yTilt; ///< Y axis tilt (in degrees) + F32 zTilt; ///< Z axis tilt (in degrees) +} ACCEL_DATA_PAYLOAD_T; + // ********** public function prototypes ********** void initAccel( void );