New driver for the LIS3MDL magnetometer.

This commit is contained in:
Robert Dickenson
2016-04-22 10:30:19 +02:00
committed by Lorenz Meier
parent ff800a4c97
commit 45a601b9c1
12 changed files with 2235 additions and 1 deletions
+14 -1
View File
@@ -1,6 +1,6 @@
#!nsh
#
# Standard startup script for PX4FMU v1, v2, v3 onboard sensor drivers.
# Standard startup script for PX4FMU v1, v2, v3, v4 onboard sensor drivers.
#
if ver hwcmp PX4FMU_V1
@@ -35,6 +35,11 @@ then
then
fi
# External I2C bus
if lis3mdl -X start
then
fi
# Internal I2C bus
if hmc5883 -C -T -I -R 4 start
then
@@ -96,6 +101,10 @@ then
then
fi
if lis3mdl -R 2 start
then
fi
# Internal SPI bus is rotated 90 deg yaw
if hmc5883 -C -T -S -R 2 start
then
@@ -163,6 +172,10 @@ then
if hmc5883 -C -T -X start
then
fi
if lis3mdl -R 2 start
then
fi
fi
if meas_airspeed start