X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fdrivers%2Fao_mpu6000.h;h=6aada9a927b9ac8da07165667fdab817cfb3b951;hb=9bc701ce1132f04ec90ef22e6a7a90c67918737b;hp=5e52148d396f6511a647374601d1ca9586335d68;hpb=0239e4dfe587528524b6380bbf6d9583047e52d6;p=fw%2Faltos diff --git a/src/drivers/ao_mpu6000.h b/src/drivers/ao_mpu6000.h index 5e52148d..6aada9a9 100644 --- a/src/drivers/ao_mpu6000.h +++ b/src/drivers/ao_mpu6000.h @@ -145,6 +145,9 @@ /* Self test gyro is approximately 50°/s */ #define MPU6000_ST_GYRO(full_scale) ((int16_t) (((int32_t) 32767 * (int32_t) 50) / (full_scale))) +#define MPU6000_GYRO_FULLSCALE 2000 +#define MPU6000_ACCEL_FULLSCALE 16 + struct ao_mpu6000_sample { int16_t accel_x; int16_t accel_y; @@ -155,7 +158,7 @@ struct ao_mpu6000_sample { int16_t gyro_z; }; -extern struct ao_mpu6000_sample ao_mpu6000_current; +extern struct ao_mpu6000_sample ao_mpu6000_current; void ao_mpu6000_init(void);