2012-08-04 19:12:36 -03:00
|
|
|
#!nsh
|
|
|
|
#
|
|
|
|
# Standard startup script for PX4FMU onboard sensor drivers.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Start sensor drivers here.
|
|
|
|
#
|
|
|
|
|
2012-08-22 11:34:53 -03:00
|
|
|
ms5611 start
|
2013-01-06 07:36:46 -04:00
|
|
|
adc start
|
2012-11-15 10:14:57 -04: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 19:12:36 -03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Start the sensor collection task.
|
2012-11-15 10:14:57 -04:00
|
|
|
# IMPORTANT: this also loads param offsets
|
|
|
|
# ALWAYS start this task before the
|
|
|
|
# preflight_check.
|
2012-08-04 19:12:36 -03:00
|
|
|
#
|
2012-08-19 11:32:54 -03:00
|
|
|
sensors start
|
2012-08-04 19:12:36 -03:00
|
|
|
|
|
|
|
#
|
2012-11-15 10:14:57 -04:00
|
|
|
# Check sensors - run AFTER 'sensors start'
|
2012-08-04 19:12:36 -03:00
|
|
|
#
|
2012-11-15 10:14:57 -04:00
|
|
|
preflight_check
|