mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_BoardConfig: support ChibiOS FMUv4
This commit is contained in:
parent
743714de4c
commit
02c3bea5a5
@ -4,7 +4,7 @@
|
||||
#include <AP_Common/AP_Common.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_SAFETY_BUTTON 1
|
||||
#else
|
||||
|
@ -209,7 +209,7 @@ void AP_BoardConfig::board_autodetect(void)
|
||||
} else {
|
||||
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
|
||||
state.board_type.set_and_notify(PX4_BOARD_PIXRACER);
|
||||
hal.console->printf("Detected Pixracer\n");
|
||||
|
Loading…
Reference in New Issue
Block a user