px4-firmware/ROMFS/px4fmu_common/init.d/rc.sensors

40 lines
533 B
Plaintext
Raw Normal View History

#!nsh
#
# Standard startup script for PX4FMU onboard sensor drivers.
#
#
# Start sensor drivers here.
#
ms5611 start
adc start
# mag might be external
if hmc5883 start
then
echo "using HMC5883"
fi
if mpu6000 start
then
echo "using MPU6000"
2013-08-11 12:39:10 -03:00
set BOARD fmuv1
else
echo "using L3GD20 and LSM303D"
l3gd20 start
2013-07-16 15:36:50 -03:00
lsm303d start
2013-08-11 12:39:10 -03:00
set BOARD fmuv2
fi
#
# Start the sensor collection task.
# IMPORTANT: this also loads param offsets
# ALWAYS start this task before the
# preflight_check.
#
if sensors start
then
2013-07-18 10:26:14 -03:00
preflight_check &
fi