SITL: create a parameter file for each airframe

This commit is contained in:
Julien Lecoeur 2019-11-19 12:11:33 +01:00 committed by Nuno Marques
parent be99064133
commit 053ede6ca5
1 changed files with 14 additions and 2 deletions

View File

@ -55,9 +55,21 @@ fi
uorb start
if [ -f eeprom/parameters ]
# Load parameters
set PARAM_FILE eeprom/parameters_"$REQUESTED_AUTOSTART"
param select $PARAM_FILE
if [ -f $PARAM_FILE ]
then
param load
if param load
then
echo "[param] Loaded: $PARAM_FILE"
else
echo "[param] FAILED loading $PARAM_FILE"
fi
else
echo "[param] parameter file not found, creating $PARAM_FILE"
fi
# exit early when the minimal shell is requested