mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 04:41:36 +08:00
ROMFS: Do only output necessary information on boot
This commit is contained in:
@@ -10,7 +10,7 @@ then
|
|||||||
#
|
#
|
||||||
set MIXERSD /fs/microsd/etc/mixers/$MIXER.mix
|
set MIXERSD /fs/microsd/etc/mixers/$MIXER.mix
|
||||||
|
|
||||||
#Use the mixer file from the SD-card if it exists
|
# Use the mixer file from the SD-card if it exists
|
||||||
if [ -f $MIXERSD ]
|
if [ -f $MIXERSD ]
|
||||||
then
|
then
|
||||||
set MIXER_FILE $MIXERSD
|
set MIXER_FILE $MIXERSD
|
||||||
@@ -54,7 +54,6 @@ then
|
|||||||
#
|
#
|
||||||
if [ $PWM_RATE != none ]
|
if [ $PWM_RATE != none ]
|
||||||
then
|
then
|
||||||
echo "[init] Set PWM rate: $PWM_RATE"
|
|
||||||
pwm rate -c $PWM_OUTPUTS -r $PWM_RATE
|
pwm rate -c $PWM_OUTPUTS -r $PWM_RATE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -63,17 +62,14 @@ then
|
|||||||
#
|
#
|
||||||
if [ $PWM_DISARMED != none ]
|
if [ $PWM_DISARMED != none ]
|
||||||
then
|
then
|
||||||
echo "[init] Set PWM disarmed: $PWM_DISARMED"
|
|
||||||
pwm disarmed -c $PWM_OUTPUTS -p $PWM_DISARMED
|
pwm disarmed -c $PWM_OUTPUTS -p $PWM_DISARMED
|
||||||
fi
|
fi
|
||||||
if [ $PWM_MIN != none ]
|
if [ $PWM_MIN != none ]
|
||||||
then
|
then
|
||||||
echo "[init] Set PWM min: $PWM_MIN"
|
|
||||||
pwm min -c $PWM_OUTPUTS -p $PWM_MIN
|
pwm min -c $PWM_OUTPUTS -p $PWM_MIN
|
||||||
fi
|
fi
|
||||||
if [ $PWM_MAX != none ]
|
if [ $PWM_MAX != none ]
|
||||||
then
|
then
|
||||||
echo "[init] Set PWM max: $PWM_MAX"
|
|
||||||
pwm max -c $PWM_OUTPUTS -p $PWM_MAX
|
pwm max -c $PWM_OUTPUTS -p $PWM_MAX
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -444,7 +444,6 @@ then
|
|||||||
|
|
||||||
if [ $GPS == yes ]
|
if [ $GPS == yes ]
|
||||||
then
|
then
|
||||||
echo "[init] Start GPS"
|
|
||||||
if [ $GPS_FAKE == yes ]
|
if [ $GPS_FAKE == yes ]
|
||||||
then
|
then
|
||||||
echo "[init] Faking GPS"
|
echo "[init] Faking GPS"
|
||||||
|
|||||||
Reference in New Issue
Block a user