|
|
|
@ -30,7 +30,7 @@ then
@@ -30,7 +30,7 @@ then
|
|
|
|
|
set MIXER_AUX none |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ $USE_IO == no ] |
|
|
|
|
if [ $USE_IO = no ] |
|
|
|
|
then |
|
|
|
|
set MIXER_AUX none |
|
|
|
|
fi |
|
|
|
@ -38,12 +38,12 @@ fi
@@ -38,12 +38,12 @@ fi
|
|
|
|
|
# |
|
|
|
|
# Set the default output mode if none was set. |
|
|
|
|
# |
|
|
|
|
if [ $OUTPUT_MODE == none ] |
|
|
|
|
if [ $OUTPUT_MODE = none ] |
|
|
|
|
then |
|
|
|
|
if [ $USE_IO == yes ] |
|
|
|
|
if [ $USE_IO = yes ] |
|
|
|
|
then |
|
|
|
|
# Enable IO output only if IO is present. |
|
|
|
|
if [ $IO_PRESENT == yes ] |
|
|
|
|
if [ $IO_PRESENT = yes ] |
|
|
|
|
then |
|
|
|
|
set OUTPUT_MODE io |
|
|
|
|
fi |
|
|
|
@ -53,17 +53,17 @@ then
@@ -53,17 +53,17 @@ then
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# |
|
|
|
|
# If OUTPUT_MODE == none then something is wrong with setup and we shouldn't try to enable output. |
|
|
|
|
# If OUTPUT_MODE = none then something is wrong with setup and we shouldn't try to enable output. |
|
|
|
|
# |
|
|
|
|
if [ $OUTPUT_MODE != none ] |
|
|
|
|
then |
|
|
|
|
if [ $OUTPUT_MODE == mkblctrl ] |
|
|
|
|
if [ $OUTPUT_MODE = mkblctrl ] |
|
|
|
|
then |
|
|
|
|
if [ $MKBLCTRL_MODE == x ] |
|
|
|
|
if [ $MKBLCTRL_MODE = x ] |
|
|
|
|
then |
|
|
|
|
set MKBLCTRL_ARG "-mkmode x" |
|
|
|
|
fi |
|
|
|
|
if [ $MKBLCTRL_MODE == + ] |
|
|
|
|
if [ $MKBLCTRL_MODE = + ] |
|
|
|
|
then |
|
|
|
|
set MKBLCTRL_ARG "-mkmode +" |
|
|
|
|
fi |
|
|
|
@ -75,7 +75,7 @@ then
@@ -75,7 +75,7 @@ then
|
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ $OUTPUT_MODE == hil -o $OUTPUT_MODE == sim ] |
|
|
|
|
if [ $OUTPUT_MODE = hil -o $OUTPUT_MODE = sim ] |
|
|
|
|
then |
|
|
|
|
if ! pwm_out_sim start |
|
|
|
|
then |
|
|
|
@ -84,7 +84,7 @@ then
@@ -84,7 +84,7 @@ then
|
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ $OUTPUT_MODE == fmu ] |
|
|
|
|
if [ $OUTPUT_MODE = fmu ] |
|
|
|
|
then |
|
|
|
|
if ! fmu mode_$FMU_MODE $FMU_ARGS |
|
|
|
|
then |
|
|
|
@ -94,7 +94,7 @@ then
@@ -94,7 +94,7 @@ then
|
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ $OUTPUT_MODE == uavcan_esc ] |
|
|
|
|
if [ $OUTPUT_MODE = uavcan_esc ] |
|
|
|
|
then |
|
|
|
|
if param compare UAVCAN_ENABLE 0 |
|
|
|
|
then |
|
|
|
@ -102,7 +102,7 @@ then
@@ -102,7 +102,7 @@ then
|
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ $OUTPUT_MODE == io -o $OUTPUT_MODE == uavcan_esc ] |
|
|
|
|
if [ $OUTPUT_MODE = io -o $OUTPUT_MODE = uavcan_esc ] |
|
|
|
|
then |
|
|
|
|
sh /etc/init.d/rc.io |
|
|
|
|
fi |
|
|
|
@ -110,7 +110,7 @@ then
@@ -110,7 +110,7 @@ then
|
|
|
|
|
# |
|
|
|
|
# Start IO for RC input if needed. |
|
|
|
|
# |
|
|
|
|
if [ $IO_PRESENT == yes ] |
|
|
|
|
if [ $IO_PRESENT = yes ] |
|
|
|
|
then |
|
|
|
|
if [ $OUTPUT_MODE != io ] |
|
|
|
|
then |
|
|
|
@ -124,12 +124,12 @@ then
@@ -124,12 +124,12 @@ then
|
|
|
|
|
# |
|
|
|
|
# Load main mixer. |
|
|
|
|
# |
|
|
|
|
if [ $MIXER_AUX == none -a $USE_IO == yes ] |
|
|
|
|
if [ $MIXER_AUX = none -a $USE_IO = yes ] |
|
|
|
|
then |
|
|
|
|
set MIXER_AUX ${MIXER} |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ "$MIXER_FILE" == none ] |
|
|
|
|
if [ "$MIXER_FILE" = none ] |
|
|
|
|
then |
|
|
|
|
if [ -f ${SDCARD_MIXERS_PATH}/${MIXER}.main.mix ] |
|
|
|
|
then |
|
|
|
@ -146,19 +146,19 @@ then
@@ -146,19 +146,19 @@ then
|
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ $OUTPUT_MODE == mkblctrl ] |
|
|
|
|
if [ $OUTPUT_MODE = mkblctrl ] |
|
|
|
|
then |
|
|
|
|
set OUTPUT_DEV /dev/mkblctrl0 |
|
|
|
|
else |
|
|
|
|
set OUTPUT_DEV /dev/pwm_output0 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ $OUTPUT_MODE == uavcan_esc ] |
|
|
|
|
if [ $OUTPUT_MODE = uavcan_esc ] |
|
|
|
|
then |
|
|
|
|
set OUTPUT_DEV /dev/uavcan/esc |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ $OUTPUT_MODE == tap_esc ] |
|
|
|
|
if [ $OUTPUT_MODE = tap_esc ] |
|
|
|
|
then |
|
|
|
|
set OUTPUT_DEV /dev/tap_esc |
|
|
|
|
fi |
|
|
|
@ -311,7 +311,7 @@ then
@@ -311,7 +311,7 @@ then
|
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ $OUTPUT_MODE == fmu -o $OUTPUT_MODE == io ] |
|
|
|
|
if [ $OUTPUT_MODE = fmu -o $OUTPUT_MODE = io ] |
|
|
|
|
then |
|
|
|
|
if [ $PWM_OUT != none ] |
|
|
|
|
then |
|
|
|
|