Merge pull request #1569 from kevindehecker/PX4_IMU

Pixhawk board IMU driver

- SPI driver for the lsm303dlhc and refactor I2C driver.
-  Created a PX4 imu, which consists lsm303dlhc (acc) + l3g (gyro) IMU, both on spi and the lsm303dlhc mag
- Changed the ms5611 baro to spi
- configurable signs for hmc58xx (to rotate sensor output in 90deg units)
This commit is contained in:
Felix Ruess
2016-03-31 21:10:00 +02:00
19 changed files with 887 additions and 197 deletions
+6
View File
@@ -9,6 +9,12 @@
<configure name="MAG_HMC58XX_I2C_DEV" value="i2c1" description="I2C device to use (e.g. i2c1)"/>
<define name="MODULE_HMC58XX_SYNC_SEND" value="TRUE|FALSE" description="Send IMU_RAW message with each new measurement (default: FALSE)"/>
<define name="MODULE_HMC58XX_UPDATE_AHRS" value="TRUE|FALSE" description="Copy measurements to imu and send as ABI message (default: FALSE)"/>
<define name="HMC58XX_CHAN_X_SIGN" value="+|-" description="Reverse polarity of x axis (default: +)"/>
<define name="HMC58XX_CHAN_Y_SIGN" value="+|-" description="Reverse polarity of y axis (default: +)"/>
<define name="HMC58XX_CHAN_Z_SIGN" value="+|-" description="Reverse polarity of z axis (default: +)"/>
<define name="HMC58XX_CHAN_X" value="0|1|2" description="Channel id of x axis (default: 0)"/>
<define name="HMC58XX_CHAN_Y" value="0|1|2" description="Channel id of y axis (default: 1)"/>
<define name="HMC58XX_CHAN_Z" value="0|1|2" description="Channel id of z axis (default: 2)"/>
</doc>
<header>
<file name="mag_hmc58xx.h"/>