mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
aerofc: Dirty hack to start mixer with the correctly output device
This commit is contained in:
committed by
Lorenz Meier
parent
66628a4cf1
commit
8f0322b8aa
@@ -31,12 +31,17 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ver hwcmp AEROFC_V1
|
||||||
|
# Do nothing
|
||||||
|
then
|
||||||
|
else
|
||||||
if [ $OUTPUT_MODE == mkblctrl ]
|
if [ $OUTPUT_MODE == mkblctrl ]
|
||||||
then
|
then
|
||||||
set OUTPUT_DEV /dev/mkblctrl0
|
set OUTPUT_DEV /dev/mkblctrl0
|
||||||
else
|
else
|
||||||
set OUTPUT_DEV /dev/pwm_output0
|
set OUTPUT_DEV /dev/pwm_output0
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $OUTPUT_MODE == uavcan_esc ]
|
if [ $OUTPUT_MODE == uavcan_esc ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user