AP_Rangefinder: added support for VRBRAIN boards
This commit is contained in:
parent
731329fc55
commit
b0b892e578
@ -211,7 +211,7 @@ void RangeFinder::update(void)
|
||||
void RangeFinder::detect_instance(uint8_t instance)
|
||||
{
|
||||
uint8_t type = _type[instance];
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
|
||||
if (type == RangeFinder_TYPE_PLI2C ||
|
||||
type == RangeFinder_TYPE_MBI2C) {
|
||||
// I2C sensor types are handled by the PX4Firmware code
|
||||
|
Loading…
Reference in New Issue
Block a user