mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
e1a528213d
This fixes the issue #13419. If RNGFNDx_ADDR is not configured, it uses default address for TFmini i2c
15 lines
351 B
C++
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; }
|
|
};
|