VRBRAIN / AP_BoardConfig: added fmu_mode parameter for VR Brain boards

This commit is contained in:
LukeMike 2018-02-03 14:52:37 +01:00 committed by Andrew Tridgell
parent b7985f77b5
commit 505497b555

View File

@ -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);