AP_BoardConfig: switch pixracer to always use in-tree drivers

This commit is contained in:
Andrew Tridgell 2016-11-09 12:47:38 +11:00
parent 84c3e29891
commit b0b93f8928
2 changed files with 7 additions and 4 deletions

View File

@ -57,8 +57,7 @@ public:
#endif
PX4_BOARD_TEST_V1 = 101,
PX4_BOARD_TEST_V2 = 102,
PX4_BOARD_TEST_V3 = 103,
PX4_BOARD_TEST_V4 = 104,
PX4_BOARD_TEST_V3 = 103
};
#endif

View File

@ -659,11 +659,15 @@ void AP_BoardConfig::px4_setup_drivers(void)
}
#endif
#if defined(CONFIG_ARCH_BOARD_PX4FMU_V4)
px4.board_type.set_and_notify(PX4_BOARD_PIXRACER);
#endif
if (px4.board_type == PX4_BOARD_TEST_V1 ||
px4.board_type == PX4_BOARD_TEST_V2 ||
px4.board_type == PX4_BOARD_TEST_V3 ||
px4.board_type == PX4_BOARD_TEST_V4 ||
px4.board_type == PX4_BOARD_PHMINI) {
px4.board_type == PX4_BOARD_PHMINI ||
px4.board_type == PX4_BOARD_PIXRACER) {
// use in-tree drivers
printf("Using in-tree drivers\n");
px4_configured_board = (enum px4_board_type)px4.board_type.get();