From ccb316f3f3c6b1d8590573b1586527ac098e673d Mon Sep 17 00:00:00 2001 From: LukeMike Date: Sat, 3 Feb 2018 15:19:25 +0100 Subject: [PATCH] VRBRAIN / AP_BoardConfig: some update for new VR Brain 5.2E (EEPROM version) --- libraries/AP_BoardConfig/AP_BoardConfig.cpp | 2 ++ libraries/AP_BoardConfig/board_drivers.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/libraries/AP_BoardConfig/AP_BoardConfig.cpp b/libraries/AP_BoardConfig/AP_BoardConfig.cpp index 00adf0306f..98e796fe0d 100644 --- a/libraries/AP_BoardConfig/AP_BoardConfig.cpp +++ b/libraries/AP_BoardConfig/AP_BoardConfig.cpp @@ -55,6 +55,8 @@ # define BOARD_TYPE_DEFAULT VRX_BOARD_BRAIN51 # elif defined(CONFIG_ARCH_BOARD_VRBRAIN_V52) # define BOARD_TYPE_DEFAULT VRX_BOARD_BRAIN52 +# elif defined(CONFIG_ARCH_BOARD_VRBRAIN_V52E) +# define BOARD_TYPE_DEFAULT VRX_BOARD_BRAIN52E # elif defined(CONFIG_ARCH_BOARD_VRUBRAIN_V51) # define BOARD_TYPE_DEFAULT VRX_BOARD_UBRAIN51 # elif defined(CONFIG_ARCH_BOARD_VRUBRAIN_V52) diff --git a/libraries/AP_BoardConfig/board_drivers.cpp b/libraries/AP_BoardConfig/board_drivers.cpp index 0c7b8b3365..dc96951e70 100644 --- a/libraries/AP_BoardConfig/board_drivers.cpp +++ b/libraries/AP_BoardConfig/board_drivers.cpp @@ -93,6 +93,7 @@ void AP_BoardConfig::board_setup_drivers(void) case PX4_BOARD_PH2SLIM: case VRX_BOARD_BRAIN51: case VRX_BOARD_BRAIN52: + case VRX_BOARD_BRAIN52E: case VRX_BOARD_UBRAIN51: case VRX_BOARD_UBRAIN52: case VRX_BOARD_CORE10: @@ -237,6 +238,9 @@ void AP_BoardConfig::board_autodetect(void) #elif defined(CONFIG_ARCH_BOARD_VRBRAIN_V52) state.board_type.set_and_notify(VRX_BOARD_BRAIN52); hal.console->printf("Detected VR Brain 5.2\n"); +#elif defined(CONFIG_ARCH_BOARD_VRBRAIN_V52E) + state.board_type.set_and_notify(VRX_BOARD_BRAIN52E); + hal.console->printf("Detected VR Brain 5.2E\n"); #elif defined(CONFIG_ARCH_BOARD_VRUBRAIN_V51) state.board_type.set_and_notify(VRX_BOARD_UBRAIN51); hal.console->printf("Detected VR Micro Brain 5.1\n");