mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-20 15:48:29 -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";
|
const char *fmu_mode = "mode_serial";
|
||||||
#elif defined(CONFIG_ARCH_BOARD_AEROFC_V1)
|
#elif defined(CONFIG_ARCH_BOARD_AEROFC_V1)
|
||||||
const char *fmu_mode = "mode_rcin";
|
const char *fmu_mode = "mode_rcin";
|
||||||
|
#else
|
||||||
|
#if CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
|
||||||
|
const char *fmu_mode = "mode_pwm";
|
||||||
#else
|
#else
|
||||||
const char *fmu_mode = "mode_pwm4";
|
const char *fmu_mode = "mode_pwm4";
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
if (px4_start_driver(fmu_main, "fmu", fmu_mode)) {
|
if (px4_start_driver(fmu_main, "fmu", fmu_mode)) {
|
||||||
printf("fmu %s started OK\n", fmu_mode);
|
printf("fmu %s started OK\n", fmu_mode);
|
||||||
|
Loading…
Reference in New Issue
Block a user