Made the MPU6000 driver a highbread using both hrt for SPI or workqueue for I2C

This commit is contained in:
David Sidrane
2016-08-07 11:15:48 +02:00
committed by Lorenz Meier
parent 5f342c3b5f
commit e8ae0fe13c
8 changed files with 194 additions and 33 deletions
+2 -4
View File
@@ -114,8 +114,7 @@ __BEGIN_DECLS
* Note that these are unshifted addresses (not includinf R/W).
*/
/* todo:
* Cannot tell from the schematic if there is one or 2 MPU6050
/*
* The slave address of the MPU-60X0 is b110100X which is 7 bits long.
* The LSB bit of the 7 bit address is determined by the logic level
* on pin AD0. This allows two MPU-60X0s to be connected to the same I2C bus.
@@ -123,8 +122,7 @@ __BEGIN_DECLS
* should be b1101000 (pin AD0 is logic low) and the address of the other
* should be b1101001 (pin AD0 is logic high).
*/
#define PX4_I2C_ON_BOARD_MPU6050_ADDRS {0x68,0x69}
#define PX4_I2C_MPU6050_ADDR 0x68
/*
* ADC channels