From 505497b555c23f2d7046018c018fe6d40f145ecb Mon Sep 17 00:00:00 2001 From: LukeMike Date: Sat, 3 Feb 2018 14:52:37 +0100 Subject: [PATCH] VRBRAIN / AP_BoardConfig: added fmu_mode parameter for VR Brain boards --- libraries/AP_BoardConfig/px4_drivers.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_BoardConfig/px4_drivers.cpp b/libraries/AP_BoardConfig/px4_drivers.cpp index 335adc408b..e81b3a6442 100644 --- a/libraries/AP_BoardConfig/px4_drivers.cpp +++ b/libraries/AP_BoardConfig/px4_drivers.cpp @@ -261,8 +261,12 @@ void AP_BoardConfig::px4_setup_peripherals(void) const char *fmu_mode = "mode_serial"; #elif defined(CONFIG_ARCH_BOARD_AEROFC_V1) const char *fmu_mode = "mode_rcin"; +#else +#if CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN + const char *fmu_mode = "mode_pwm"; #else const char *fmu_mode = "mode_pwm4"; +#endif #endif if (px4_start_driver(fmu_main, "fmu", fmu_mode)) { printf("fmu %s started OK\n", fmu_mode);