APM:Libraries
|
#include <AP_RangeFinder_LightWareI2C.h>
Public Member Functions | |
void | update (void) |
Public Member Functions inherited from AP_RangeFinder_Backend | |
AP_RangeFinder_Backend (RangeFinder::RangeFinder_State &_state) | |
virtual | ~AP_RangeFinder_Backend (void) |
virtual void | handle_msg (mavlink_message_t *msg) |
void | update_pre_arm_check () |
enum Rotation | orientation () const |
uint16_t | distance_cm () const |
uint16_t | voltage_mv () const |
int16_t | max_distance_cm () const |
int16_t | min_distance_cm () const |
int16_t | ground_clearance_cm () const |
MAV_DISTANCE_SENSOR | get_mav_distance_sensor_type () const |
RangeFinder::RangeFinder_Status | status () const |
RangeFinder::RangeFinder_Type | type () const |
bool | has_data () const |
uint8_t | range_valid_count () const |
const Vector3f & | get_pos_offset () const |
Static Public Member Functions | |
static AP_RangeFinder_Backend * | detect (RangeFinder::RangeFinder_State &_state, AP_HAL::OwnPtr< AP_HAL::I2CDevice > dev) |
Protected Member Functions | |
virtual MAV_DISTANCE_SENSOR | _get_mav_distance_sensor_type () const override |
Protected Member Functions inherited from AP_RangeFinder_Backend | |
void | update_status () |
void | set_status (RangeFinder::RangeFinder_Status status) |
Private Member Functions | |
AP_RangeFinder_LightWareI2C (RangeFinder::RangeFinder_State &_state, AP_HAL::OwnPtr< AP_HAL::I2CDevice > dev) | |
void | init () |
void | timer () |
bool | get_reading (uint16_t &reading_cm) |
Private Attributes | |
AP_HAL::OwnPtr< AP_HAL::I2CDevice > | _dev |
Additional Inherited Members | |
Protected Attributes inherited from AP_RangeFinder_Backend | |
RangeFinder::RangeFinder_State & | state |
AP_HAL::Semaphore * | _sem |
Definition at line 7 of file AP_RangeFinder_LightWareI2C.h.
|
private |
Definition at line 29 of file AP_RangeFinder_LightWareI2C.cpp.
Referenced by _get_mav_distance_sensor_type(), and detect().
|
inlineoverrideprotectedvirtual |
Implements AP_RangeFinder_Backend.
Definition at line 20 of file AP_RangeFinder_LightWareI2C.h.
|
static |
Definition at line 38 of file AP_RangeFinder_LightWareI2C.cpp.
Referenced by RangeFinder::detect_instance().
|
private |
Definition at line 71 of file AP_RangeFinder_LightWareI2C.cpp.
Referenced by _get_mav_distance_sensor_type(), detect(), and timer().
|
private |
Definition at line 63 of file AP_RangeFinder_LightWareI2C.cpp.
Referenced by _get_mav_distance_sensor_type(), and detect().
|
private |
Definition at line 97 of file AP_RangeFinder_LightWareI2C.cpp.
Referenced by _get_mav_distance_sensor_type(), and init().
|
virtual |
Implements AP_RangeFinder_Backend.
Definition at line 92 of file AP_RangeFinder_LightWareI2C.cpp.
|
private |
Definition at line 33 of file AP_RangeFinder_LightWareI2C.h.
Referenced by detect(), get_reading(), and init().