AP_RangeFinder: added VRBRAIN to use PX4 libraries

This commit is contained in:
Emile Castelnuovo 2014-12-30 12:02:31 +01:00 committed by Andrew Tridgell
parent dae32984f1
commit c38b11eec8

View File

@ -232,7 +232,7 @@ void RangeFinder::detect_instance(uint8_t instance)
return; return;
} }
} }
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 #if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
if (type == RangeFinder_TYPE_PX4) { if (type == RangeFinder_TYPE_PX4) {
if (AP_RangeFinder_PX4::detect(*this, instance)) { if (AP_RangeFinder_PX4::detect(*this, instance)) {
state[instance].instance = instance; state[instance].instance = instance;