mirror of https://github.com/ArduPilot/ardupilot
28 lines
626 B
C++
28 lines
626 B
C++
#pragma once
|
|
|
|
#include "AP_RangeFinder_config.h"
|
|
|
|
#if AP_RANGEFINDER_BENEWAKE_TFMINI_ENABLED
|
|
|
|
#include "AP_RangeFinder_Benewake.h"
|
|
|
|
class AP_RangeFinder_Benewake_TFMini : public AP_RangeFinder_Benewake
|
|
{
|
|
public:
|
|
|
|
static AP_RangeFinder_Backend_Serial *create(
|
|
RangeFinder::RangeFinder_State &_state,
|
|
AP_RangeFinder_Params &_params) {
|
|
return NEW_NOTHROW AP_RangeFinder_Benewake_TFMini(_state, _params);
|
|
}
|
|
|
|
protected:
|
|
float model_dist_max_cm() const override { return 1200; }
|
|
|
|
private:
|
|
|
|
using AP_RangeFinder_Benewake::AP_RangeFinder_Benewake;
|
|
};
|
|
|
|
#endif // AP_RANGEFINDER_BENEWAKE_TFMINI
|