mirror of https://github.com/ArduPilot/ardupilot
VRBRAIN / AP_RangeFinder: removed AP_RangeFinder_PX4_PWM for VR Brain boards
This commit is contained in:
parent
a319f6632f
commit
721f55e93c
|
@ -15,7 +15,7 @@
|
|||
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
|
||||
#include <AP_BoardConfig/AP_BoardConfig.h>
|
||||
#include "AP_RangeFinder_PX4_PWM.h"
|
||||
|
||||
|
|
|
@ -654,7 +654,7 @@ void RangeFinder::detect_instance(uint8_t instance)
|
|||
hal.i2c_mgr->get_device(0, 0x29)));
|
||||
}
|
||||
break;
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
|
||||
case RangeFinder_TYPE_PX4_PWM:
|
||||
if (AP_RangeFinder_PX4_PWM::detect()) {
|
||||
state[instance].instance = instance;
|
||||
|
|
Loading…
Reference in New Issue