2012-08-04 15:12:36 -07:00
|
|
|
#!nsh
|
|
|
|
|
#
|
|
|
|
|
# Standard startup script for PX4FMU onboard sensor drivers.
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Start sensor drivers here.
|
|
|
|
|
#
|
|
|
|
|
|
2012-08-22 16:34:53 +02:00
|
|
|
ms5611 start
|
2013-01-06 12:36:46 +01:00
|
|
|
adc start
|
2012-11-15 15:14:57 +01:00
|
|
|
|
|
|
|
|
if mpu6000 start
|
|
|
|
|
then
|
|
|
|
|
echo "using MPU6000 and HMC5883L"
|
|
|
|
|
hmc5883 start
|
|
|
|
|
else
|
|
|
|
|
echo "using L3GD20 and LSM303D"
|
|
|
|
|
l3gd20 start
|
|
|
|
|
lsm303 start
|
|
|
|
|
fi
|
2012-08-04 15:12:36 -07:00
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Start the sensor collection task.
|
2012-11-15 15:14:57 +01:00
|
|
|
# IMPORTANT: this also loads param offsets
|
|
|
|
|
# ALWAYS start this task before the
|
|
|
|
|
# preflight_check.
|
2012-08-04 15:12:36 -07:00
|
|
|
#
|
2012-08-19 16:32:54 +02:00
|
|
|
sensors start
|
2012-08-04 15:12:36 -07:00
|
|
|
|
|
|
|
|
#
|
2012-11-15 15:14:57 +01:00
|
|
|
# Check sensors - run AFTER 'sensors start'
|
2012-08-04 15:12:36 -07:00
|
|
|
#
|
2012-11-15 15:14:57 +01:00
|
|
|
preflight_check
|