From 8f0322b8aa208a1882f8b64de92573159c80f162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Fri, 23 Sep 2016 19:37:57 -0300 Subject: [PATCH] aerofc: Dirty hack to start mixer with the correctly output device --- ROMFS/px4fmu_common/init.d/rc.interface | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rc.interface b/ROMFS/px4fmu_common/init.d/rc.interface index 255570ca5f..62de7c345f 100644 --- a/ROMFS/px4fmu_common/init.d/rc.interface +++ b/ROMFS/px4fmu_common/init.d/rc.interface @@ -31,11 +31,16 @@ then fi fi - if [ $OUTPUT_MODE == mkblctrl ] + if ver hwcmp AEROFC_V1 + # Do nothing then - set OUTPUT_DEV /dev/mkblctrl0 else - set OUTPUT_DEV /dev/pwm_output0 + if [ $OUTPUT_MODE == mkblctrl ] + then + set OUTPUT_DEV /dev/mkblctrl0 + else + set OUTPUT_DEV /dev/pwm_output0 + fi fi if [ $OUTPUT_MODE == uavcan_esc ]