37 if (rngfnd ==
nullptr) {
47 if (sensor ==
nullptr) {
54 _angle[sector] = sector * 45;
67 if ((distance_upward >= up_distance_min) && (distance_upward <= up_distance_max)) {
#define PROXIMITY_RANGEFIDER_TIMEOUT_MS
AP_RangeFinder_Backend * get_backend(uint8_t id) const
AP_Proximity_RangeFinder(AP_Proximity &_frontend, AP_Proximity::Proximity_State &_state)
bool _distance_valid[PROXIMITY_SECTORS_MAX]
float _angle[PROXIMITY_SECTORS_MAX]
enum Rotation orientation() const
uint16_t distance_cm() const
bool is_positive(const T fVal1)
void set_status(AP_Proximity::Proximity_Status status)
uint8_t num_sensors(void) const
bool get_upward_distance(float &distance) const
float _distance[PROXIMITY_SECTORS_MAX]
uint32_t _last_upward_update_ms
const RangeFinder * get_rangefinder() const
void update_boundary_for_sector(uint8_t sector)
int16_t min_distance_cm() const
const AP_HAL::HAL & hal
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
int16_t max_distance_cm() const