mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 19:57:12 +08:00
Cleaning up start scripts, enabling preflight check as default
This commit is contained in:
+15
-10
@@ -8,21 +8,26 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
ms5611 start
|
ms5611 start
|
||||||
mpu6000 start
|
|
||||||
hmc5883 start
|
if mpu6000 start
|
||||||
|
then
|
||||||
|
echo "using MPU6000 and HMC5883L"
|
||||||
|
hmc5883 start
|
||||||
|
else
|
||||||
|
echo "using L3GD20 and LSM303D"
|
||||||
|
l3gd20 start
|
||||||
|
lsm303 start
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start the sensor collection task.
|
# Start the sensor collection task.
|
||||||
|
# IMPORTANT: this also loads param offsets
|
||||||
|
# ALWAYS start this task before the
|
||||||
|
# preflight_check.
|
||||||
#
|
#
|
||||||
sensors start
|
sensors start
|
||||||
|
|
||||||
#
|
#
|
||||||
# Test sensor functionality
|
# Check sensors - run AFTER 'sensors start'
|
||||||
#
|
#
|
||||||
# XXX integrate with 'sensors start' ?
|
preflight_check
|
||||||
#
|
|
||||||
#if sensors quicktest
|
|
||||||
#then
|
|
||||||
# echo "[init] sensor initialisation FAILED."
|
|
||||||
# reboot
|
|
||||||
#fi
|
|
||||||
@@ -10,68 +10,4 @@ echo "[init] doing standalone PX4FMU startup..."
|
|||||||
#
|
#
|
||||||
uorb start
|
uorb start
|
||||||
|
|
||||||
#
|
|
||||||
# Init the EEPROM
|
|
||||||
#
|
|
||||||
echo "[init] eeprom"
|
|
||||||
eeprom start
|
|
||||||
if [ -f /eeprom/parameters ]
|
|
||||||
then
|
|
||||||
param load
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
|
||||||
# Start the sensors.
|
|
||||||
#
|
|
||||||
#sh /etc/init.d/rc.sensors
|
|
||||||
|
|
||||||
#
|
|
||||||
# Start MAVLink
|
|
||||||
#
|
|
||||||
# mavlink -d /dev/ttyS0 -b 57600 &
|
|
||||||
|
|
||||||
#
|
|
||||||
# Start the commander.
|
|
||||||
#
|
|
||||||
# XXX this should be 'commander start'.
|
|
||||||
#
|
|
||||||
#commander &
|
|
||||||
|
|
||||||
#
|
|
||||||
# Start the attitude estimator
|
|
||||||
#
|
|
||||||
# XXX this should be '<command> start'.
|
|
||||||
#
|
|
||||||
#attitude_estimator_bm &
|
|
||||||
#position_estimator &
|
|
||||||
|
|
||||||
#
|
|
||||||
# Start the fixed-wing controller.
|
|
||||||
#
|
|
||||||
# XXX should this be looking for configuration to decide
|
|
||||||
# whether the board is configured for fixed-wing use?
|
|
||||||
#
|
|
||||||
# XXX this should be 'fixedwing_control start'.
|
|
||||||
#
|
|
||||||
#fixedwing_control &
|
|
||||||
|
|
||||||
#
|
|
||||||
# Configure FMU for standalone mode
|
|
||||||
#
|
|
||||||
# XXX arguments?
|
|
||||||
#
|
|
||||||
#px4fmu start
|
|
||||||
|
|
||||||
#
|
|
||||||
# Start looking for a GPS.
|
|
||||||
#
|
|
||||||
# XXX this should not need to be backgrounded
|
|
||||||
#
|
|
||||||
#gps -d /dev/ttyS3 -m all &
|
|
||||||
|
|
||||||
#
|
|
||||||
# Start logging to microSD if we can
|
|
||||||
#
|
|
||||||
sh /etc/init.d/rc.logging
|
|
||||||
|
|
||||||
echo "[init] startup done"
|
echo "[init] startup done"
|
||||||
|
|||||||
Reference in New Issue
Block a user