AP_WheelEncoder: remove use of never-set AP_HAL_PX4 and AP_HAL_VRBRAIN

This commit is contained in:
Peter Barker 2019-01-17 11:00:22 +11:00 committed by Andrew Tridgell
parent a800395742
commit 3ecb785f0f
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ void AP_WheelEncoder::init(void)
return;
}
for (uint8_t i=0; i<WHEELENCODER_MAX_INSTANCES; i++) {
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN || CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
switch ((WheelEncoder_Type)_type[i].get()) {
case WheelEncoder_TYPE_QUADRATURE:
drivers[i] = new AP_WheelEncoder_Quadrature(*this, i, state[i]);