#ifndef _GAM_H #define _GAM_H //Gyro, accelerometer, and magnetometer data structure //Used for reading an instance of the sensor data typedef struct { // GYRO //Xint16 raw_gyro_x, raw_gyro_y, raw_gyro_z; float gyro_xVel_p; // In degrees per second float gyro_yVel_q; float gyro_zVel_r; // ACCELEROMETER //Xint16 raw_accel_x, raw_accel_y, raw_accel_z; float accel_x; //In g float accel_y; float accel_z; float accel_roll; float accel_pitch; // MAG //Xint16 raw_mag_x, raw_mag_y, raw_mag_z; float heading; // In degrees float mag_x; //Magnetic north: ~50 uT float mag_y; float mag_z; }gam_t; #endif /* _GAM_H */