AC_PID: remove use of never-set AP_HAL_PX4 and AP_HAL_VRBRAIN

This commit is contained in:
Peter Barker 2019-01-17 11:13:21 +11:00 committed by Andrew Tridgell
parent 3bbe6c46a5
commit 312243142b
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
#include <RC_Channel/RC_Channel.h>
// we need a boardconfig created so that the io processor is available
#if HAL_WITH_IO_MCU || CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
#if HAL_WITH_IO_MCU
#include <AP_BoardConfig/AP_BoardConfig.h>
#include <AP_IOMCU/AP_IOMCU.h>
AP_BoardConfig BoardConfig;
@ -57,7 +57,7 @@ void setup()
{
hal.console->printf("ArduPilot AC_PID library test\n");
#if HAL_WITH_IO_MCU || CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
#if HAL_WITH_IO_MCU
BoardConfig.init();
#endif