init.d-posix replace bashism '==' with '='

This commit is contained in:
Daniel Agar
2018-08-25 11:32:16 -04:00
committed by Lorenz Meier
parent 3c4c9131aa
commit 642aff9786
12 changed files with 19 additions and 19 deletions
@@ -7,7 +7,7 @@
sh /etc/init.d-posix/10016_iris
if [ $AUTOCNF == yes ]
if [ $AUTOCNF = yes ]
then
param set EKF2_AID_MASK 2
@@ -8,7 +8,7 @@
sh /etc/init.d-posix/10016_iris
if [ $AUTOCNF == yes ]
if [ $AUTOCNF = yes ]
then
# enable fusion of landing target velocity
param set LTEST_MODE 1
@@ -7,7 +7,7 @@
sh /etc/init.d-posix/10016_iris
if [ $AUTOCNF == yes ]
if [ $AUTOCNF = yes ]
then
param set LPE_FUSION 242
fi
@@ -7,7 +7,7 @@
sh /etc/init.d-posix/1010_iris_opt_flow
if [ $AUTOCNF == yes ]
if [ $AUTOCNF = yes ]
then
param set EKF2_AID_MASK 8
param set EKF2_EV_DELAY 5
+1 -1
View File
@@ -7,7 +7,7 @@
sh /etc/init.d/rc.mc_defaults
if [ $AUTOCNF == yes ]
if [ $AUTOCNF = yes ]
then
param set MC_PITCHRATE_P 0.15
param set MC_ROLLRATE_P 0.15
+1 -1
View File
@@ -5,7 +5,7 @@
sh /etc/init.d/rc.fw_defaults
if [ $AUTOCNF == yes ]
if [ $AUTOCNF = yes ]
then
param set MAV_TYPE 1
@@ -7,7 +7,7 @@
sh /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF == yes ]
if [ $AUTOCNF = yes ]
then
param set MAV_TYPE 22
@@ -7,7 +7,7 @@
sh /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF == yes ]
if [ $AUTOCNF = yes ]
then
param set MAV_TYPE 20
@@ -7,7 +7,7 @@
sh /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF == yes ]
if [ $AUTOCNF = yes ]
then
param set MAV_TYPE 21
+1 -1
View File
@@ -5,7 +5,7 @@
sh /etc/init.d/rc.ugv_defaults
if [ $AUTOCNF == yes ]
if [ $AUTOCNF = yes ]
then
param set MAV_TYPE 10
@@ -7,7 +7,7 @@
sh /etc/init.d/rc.mc_defaults
if [ $AUTOCNF == yes ]
if [ $AUTOCNF = yes ]
then
param set MAV_TYPE 13
+8 -8
View File
@@ -13,7 +13,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# check for ekf2 replay
# shellcheck disable=SC2154
if [ "$replay_mode" == "ekf2" ]
if [ "$replay_mode" = "ekf2" ]
then
sh etc/init.d-posix/rc.replay
exit 0
@@ -36,7 +36,7 @@ set VEHICLE_TYPE none
set RUN_MINIMAL_SHELL no
# Use the variable set by sitl_run.sh to choose the model settings.
if [ "$PX4_SIM_MODEL" == "shell" ]; then
if [ "$PX4_SIM_MODEL" = "shell" ]; then
set RUN_MINIMAL_SHELL yes
else
# Find the matching Autostart ID (file name has the form: [0-9]+_${PX4_SIM_MODEL})
@@ -59,15 +59,15 @@ then
fi
# exit early when the minimal shell is requested
[ $RUN_MINIMAL_SHELL == yes ] && exit 0
[ $RUN_MINIMAL_SHELL = yes ] && exit 0
# Use environment variable PX4_ESTIMATOR to choose estimator.
if [ "$PX4_ESTIMATOR" == "ekf2" ]; then
if [ "$PX4_ESTIMATOR" = "ekf2" ]; then
param set SYS_MC_EST_GROUP 2
elif [ "$PX4_ESTIMATOR" == "lpe" ]; then
elif [ "$PX4_ESTIMATOR" = "lpe" ]; then
param set SYS_MC_EST_GROUP 1
elif [ "$PX4_ESTIMATOR" == "inav" ]; then
elif [ "$PX4_ESTIMATOR" = "inav" ]; then
param set SYS_MC_EST_GROUP 0
fi
@@ -86,7 +86,7 @@ udp_offboard_port_local=$((14557+px4_instance))
udp_offboard_port_remote=$((14540+px4_instance))
udp_gcs_port_local=$((14556+px4_instance))
if [ $AUTOCNF == yes ]
if [ $AUTOCNF = yes ]
then
param set SYS_AUTOSTART $REQUESTED_AUTOSTART
@@ -188,7 +188,7 @@ then
fi
if [ ${VEHICLE_TYPE} == fw -o ${VEHICLE_TYPE} == vtol ]
if [ ${VEHICLE_TYPE} = fw -o ${VEHICLE_TYPE} = vtol ]
then
if param compare CBRK_AIRSPD_CHK 0
then