7 #define AP_RANGE_FINDER_MAXSONARI2CXL_DEFAULT_ADDR 0x70 9 #define AP_RANGEFINDER_MAXSONARI2CXL 4 10 #define AP_RANGE_FINDER_MAXSONARI2CXL_SCALER 1.0 11 #define AP_RANGE_FINDER_MAXSONARI2CXL_MIN_DISTANCE 20 12 #define AP_RANGE_FINDER_MAXSONARI2CXL_MAX_DISTANCE 765 14 #define AP_RANGE_FINDER_MAXSONARI2CXL_COMMAND_TAKE_RANGE_READING 0x51 29 return MAV_DISTANCE_SENSOR_ULTRASOUND;
MAV_DISTANCE_SENSOR _get_mav_distance_sensor_type() const override
static AP_RangeFinder_Backend * detect(RangeFinder::RangeFinder_State &_state, AP_HAL::OwnPtr< AP_HAL::I2CDevice > dev)
AP_RangeFinder_MaxsonarI2CXL(RangeFinder::RangeFinder_State &_state, AP_HAL::OwnPtr< AP_HAL::I2CDevice > dev)
bool get_reading(uint16_t &reading_cm)
static AP_HAL::OwnPtr< AP_HAL::Device > dev
AP_HAL::OwnPtr< AP_HAL::I2CDevice > _dev