AP_BoardConfig: add ChibiOS FMUv4pro defines

This commit is contained in:
Kevin Lopez Alvarez 2018-08-24 17:28:10 +02:00 committed by Andrew Tridgell
parent 6c2cf4ecc0
commit 2069cff1bf
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
#include <AP_Param_Helper/AP_Param_Helper.h>
#endif
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN || defined(HAL_CHIBIOS_ARCH_FMUV3) || defined(HAL_CHIBIOS_ARCH_FMUV4) || defined(HAL_CHIBIOS_ARCH_FMUV5) || defined(HAL_CHIBIOS_ARCH_MINDPXV2)
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN || defined(HAL_CHIBIOS_ARCH_FMUV3) || defined(HAL_CHIBIOS_ARCH_FMUV4) || defined(HAL_CHIBIOS_ARCH_FMUV5) || defined(HAL_CHIBIOS_ARCH_MINDPXV2) || defined(HAL_CHIBIOS_ARCH_FMUV4PRO)
#define AP_FEATURE_BOARD_DETECT 1
#else
#define AP_FEATURE_BOARD_DETECT 0

View File

@ -241,7 +241,7 @@ void AP_BoardConfig::board_autodetect(void)
// only one choice
state.board_type.set_and_notify(PX4_BOARD_MINDPXV2);
hal.console->printf("Detected MindPX-V2\n");
#elif defined(CONFIG_ARCH_BOARD_PX4FMU_V4PRO)
#elif defined(CONFIG_ARCH_BOARD_PX4FMU_V4PRO) || defined(HAL_CHIBIOS_ARCH_FMUV4PRO)
// only one choice
state.board_type.set_and_notify(PX4_BOARD_PIXHAWK_PRO);
hal.console->printf("Detected Pixhawk Pro\n");