VRBRAIN / AP_BoardConfig: some update for new VR Brain 5.2E (EEPROM version)

This commit is contained in:
LukeMike 2018-02-03 15:19:25 +01:00 committed by Andrew Tridgell
parent 8b737c54b9
commit ccb316f3f3
2 changed files with 6 additions and 0 deletions

View File

@ -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)

View File

@ -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");