mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 09:43:57 -04:00
AP_RangeFinder: added VRBRAIN to use PX4 libraries
This commit is contained in:
parent
dae32984f1
commit
c38b11eec8
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user