AP_BoardConfig: support ChibiOS FMUv4

This commit is contained in:
Andrew Tridgell 2018-01-10 21:34:24 +11:00
parent 743714de4c
commit 02c3bea5a5
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
#include <AP_Common/AP_Common.h> #include <AP_Common/AP_Common.h>
#include <AP_Param/AP_Param.h> #include <AP_Param/AP_Param.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN || defined(HAL_CHIBIOS_ARCH_FMUV3) #if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN || defined(HAL_CHIBIOS_ARCH_FMUV3) || defined(HAL_CHIBIOS_ARCH_FMUV4)
#define AP_FEATURE_BOARD_DETECT 1 #define AP_FEATURE_BOARD_DETECT 1
#define AP_FEATURE_SAFETY_BUTTON 1 #define AP_FEATURE_SAFETY_BUTTON 1
#else #else

View File

@ -209,7 +209,7 @@ void AP_BoardConfig::board_autodetect(void)
} else { } else {
sensor_config_error("Unable to detect board type"); sensor_config_error("Unable to detect board type");
} }
#elif defined(CONFIG_ARCH_BOARD_PX4FMU_V4) #elif defined(CONFIG_ARCH_BOARD_PX4FMU_V4) || defined(HAL_CHIBIOS_ARCH_FMUV4)
// only one choice // only one choice
state.board_type.set_and_notify(PX4_BOARD_PIXRACER); state.board_type.set_and_notify(PX4_BOARD_PIXRACER);
hal.console->printf("Detected Pixracer\n"); hal.console->printf("Detected Pixracer\n");