mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 16:10:12 +08:00
init.d-posix/px4-rc.simulator: adds non-default LAT and LON as optional environment variables
This commit is contained in:
committed by
Daniel Agar
parent
b3cc945a5a
commit
eb4da990c3
@@ -8,6 +8,14 @@ if [ "$PX4_SIMULATOR" = "sihsim" ] || [ "$(param show -q SYS_AUTOSTART)" -eq "0"
|
|||||||
|
|
||||||
echo "INFO [init] SIH simulator"
|
echo "INFO [init] SIH simulator"
|
||||||
|
|
||||||
|
if [ ! -z "${PX4_HOME_LAT}" ]; then
|
||||||
|
param set SIH_LOC_LAT0 ${PX4_HOME_LAT}
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -z "${PX4_HOME_LON}" ]; then
|
||||||
|
param set SIH_LOC_LON0 ${PX4_HOME_LON}
|
||||||
|
fi
|
||||||
|
|
||||||
if simulator_sih start; then
|
if simulator_sih start; then
|
||||||
|
|
||||||
if param compare -s SENS_EN_BAROSIM 1
|
if param compare -s SENS_EN_BAROSIM 1
|
||||||
|
|||||||
Reference in New Issue
Block a user