ROMFS: fix SYS_USE_IO==0

When SYS_USE_IO was disabled, px4io would not start and thus there was no
RC. SYS_USE_IO=0 is interesting on Quads to avoid the IO and reduce output
latency.

Tested on Pixhawk 1 and Pixhawk 4
This commit is contained in:
Beat Küng
2018-05-28 16:37:28 +02:00
committed by Lorenz Meier
parent ae75ff6c72
commit 77cea8844f
2 changed files with 45 additions and 43 deletions

View File

@@ -125,6 +125,11 @@ then
set MIXER_AUX none
fi
if [ $USE_IO == no ]
then
set MIXER_AUX none
fi
if [ $MIXER_AUX != none -a $AUX_MODE != none ]
then
#

View File

@@ -321,8 +321,6 @@ then
set IO_PRESENT no
if [ $USE_IO == yes ]
then
#
# Check if PX4IO present and update firmware if needed
#
@@ -369,12 +367,11 @@ then
fi
unset IO_FILE
if [ $IO_PRESENT == no ]
if [ $USE_IO == yes -a $IO_PRESENT == no ]
then
echo "PX4IO not found" >> $LOG_FILE
tune_control play -m ${TUNE_ERR}
fi
fi
#
# Set default output if not set