mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
SITL: create a parameter file for each airframe
This commit is contained in:
committed by
Nuno Marques
parent
be99064133
commit
053ede6ca5
@@ -55,9 +55,21 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
uorb start
|
uorb start
|
||||||
if [ -f eeprom/parameters ]
|
|
||||||
|
# Load parameters
|
||||||
|
set PARAM_FILE eeprom/parameters_"$REQUESTED_AUTOSTART"
|
||||||
|
param select $PARAM_FILE
|
||||||
|
|
||||||
|
if [ -f $PARAM_FILE ]
|
||||||
then
|
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
|
fi
|
||||||
|
|
||||||
# exit early when the minimal shell is requested
|
# exit early when the minimal shell is requested
|
||||||
|
|||||||
Reference in New Issue
Block a user