5 #include <util/delay.h> 7 #define GYRO_STATUS 0b10000000 8 #define WHO_AM_I 0b10001100 9 #define GYRO_OUT_X_H 0b10000001 10 #define GYRO_OUT_X_L 0b10000010 11 #define GYRO_OUT_Y_H 0b10000011 12 #define GYRO_OUT_Y_L 0b10000100 13 #define GYRO_OUT_Z_H 0b10000101 14 #define GYRO_OUT_Z_L 0b10000110 15 #define GYRO_TEMP 0b10001100 16 #define CTRL_REG0 0b00001101 18 #define GYRO_SENSITIVITY 62.5 // Angular rate 200 dps 20 unsigned char gyro_x_high, gyro_y_high, gyro_z_high;
21 unsigned char gyro_x_low, gyro_y_low, gyro_z_low;
23 volatile short raw_gyro_x, raw_gyro_y, raw_gyro_z;
25 unsigned char who_am_i;
26 volatile short raw_temp;
27 volatile float celsius;
void setupFXAS21002(void)
Definition: fxas21002.c:10
void getGyroData(void)
Definition: fxas21002.c:27
void getGyroTemp(void)
Definition: fxas21002.c:59