Browse Source

VRBRAIN / AP_RangeFinder: removed AP_RangeFinder_PX4_PWM for VR Brain boards

master
LukeMike 7 years ago committed by Andrew Tridgell
parent
commit
721f55e93c
  1. 2
      libraries/AP_RangeFinder/AP_RangeFinder_PX4_PWM.cpp
  2. 2
      libraries/AP_RangeFinder/RangeFinder.cpp

2
libraries/AP_RangeFinder/AP_RangeFinder_PX4_PWM.cpp

@ -15,7 +15,7 @@ @@ -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"

2
libraries/AP_RangeFinder/RangeFinder.cpp

@ -654,7 +654,7 @@ void RangeFinder::detect_instance(uint8_t instance) @@ -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…
Cancel
Save