ardupilot/libraries/AP_RangeFinder/AP_RangeFinder_Benewake_TFMini.h
Shiv Tyagi e1a528213d AP_Rangefinder: Use default address for TFMiniPlus I2C unless configured
This fixes the issue #13419. If RNGFNDx_ADDR is not configured, it uses default address for TFmini i2c
2021-11-30 10:09:24 +11:00

15 lines
351 B
C++

#pragma once
#include "AP_RangeFinder_Benewake.h"
#define TFMINI_ADDR_DEFAULT 0x10 // TFMini default device id
class AP_RangeFinder_Benewake_TFMini : public AP_RangeFinder_Benewake
{
public:
using AP_RangeFinder_Benewake::AP_RangeFinder_Benewake;
protected:
float model_dist_max_cm() const override { return 1200; }
};