mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
VRBRAIN / AP_BoardConfig: added fmu_mode parameter for VR Brain boards
This commit is contained in:
parent
b7985f77b5
commit
505497b555
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user