mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 14:58:53 +08:00
44 lines
569 B
Plaintext
44 lines
569 B
Plaintext
#!nsh
|
|
#
|
|
# Standard startup script for PX4FMU onboard sensor drivers.
|
|
#
|
|
|
|
#
|
|
# Start sensor drivers here.
|
|
#
|
|
|
|
#
|
|
# Check for UORB
|
|
#
|
|
if uorb start
|
|
then
|
|
echo "uORB started"
|
|
fi
|
|
|
|
ms5611 start
|
|
adc start
|
|
|
|
if mpu6000 start
|
|
then
|
|
echo "using MPU6000 and HMC5883L"
|
|
hmc5883 start
|
|
else
|
|
echo "using L3GD20 and LSM303D"
|
|
l3gd20 start
|
|
lsm303d start
|
|
fi
|
|
|
|
#
|
|
# Start the sensor collection task.
|
|
# IMPORTANT: this also loads param offsets
|
|
# ALWAYS start this task before the
|
|
# preflight_check.
|
|
#
|
|
if sensors start
|
|
then
|
|
#
|
|
# Check sensors - run AFTER 'sensors start'
|
|
#
|
|
preflight_check
|
|
fi
|