mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 02:21:37 +08:00
Fixed to FMUv2 autostart and config
This commit is contained in:
@@ -56,11 +56,6 @@ pwm -u 400 -m 0xff
|
|||||||
# this is very unlikely, but quite safe and robust.
|
# this is very unlikely, but quite safe and robust.
|
||||||
px4io recovery
|
px4io recovery
|
||||||
|
|
||||||
#
|
|
||||||
# Disable px4io topic limiting
|
|
||||||
#
|
|
||||||
px4io limit 200
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# This sets a PWM right after startup (regardless of safety button)
|
# This sets a PWM right after startup (regardless of safety button)
|
||||||
#
|
#
|
||||||
@@ -101,14 +96,21 @@ attitude_estimator_ekf start
|
|||||||
multirotor_att_control start
|
multirotor_att_control start
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start logging
|
# Disable px4io topic limiting and start logging
|
||||||
#
|
#
|
||||||
sdlog2 start -r 50 -a -b 16
|
if [ $BOARD == fmuv1 ]
|
||||||
|
|
||||||
#
|
|
||||||
# Start system state
|
|
||||||
#
|
|
||||||
if blinkm start
|
|
||||||
then
|
then
|
||||||
blinkm systemstate
|
px4io limit 200
|
||||||
|
sdlog2 start -r 50 -a -b 16
|
||||||
|
if blinkm start
|
||||||
|
then
|
||||||
|
blinkm systemstate
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
px4io limit 400
|
||||||
|
sdlog2 start -r 100 -a -b 16
|
||||||
|
if rgbled start
|
||||||
|
then
|
||||||
|
#rgbled systemstate
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -22,10 +22,12 @@ if mpu6000 start
|
|||||||
then
|
then
|
||||||
echo "using MPU6000 and HMC5883L"
|
echo "using MPU6000 and HMC5883L"
|
||||||
hmc5883 start
|
hmc5883 start
|
||||||
|
set BOARD fmuv1
|
||||||
else
|
else
|
||||||
echo "using L3GD20 and LSM303D"
|
echo "using L3GD20 and LSM303D"
|
||||||
l3gd20 start
|
l3gd20 start
|
||||||
lsm303d start
|
lsm303d start
|
||||||
|
set BOARD fmuv2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ MODULES += modules/multirotor_pos_control
|
|||||||
#
|
#
|
||||||
# Logging
|
# Logging
|
||||||
#
|
#
|
||||||
MODULES += modules/sdlog
|
MODULES += modules/sdlog2
|
||||||
|
|
||||||
#
|
#
|
||||||
# Library modules
|
# Library modules
|
||||||
|
|||||||
Reference in New Issue
Block a user