2019-11-01 04:03:17 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "AP_RangeFinder_Benewake.h"
|
|
|
|
|
2022-03-12 06:37:29 -04:00
|
|
|
#ifndef AP_RANGEFINDER_BENEWAKE_TF03_ENABLED
|
|
|
|
#define AP_RANGEFINDER_BENEWAKE_TF03_ENABLED (AP_RANGEFINDER_BENEWAKE_ENABLED && AP_RANGEFINDER_BACKEND_DEFAULT_ENABLED)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if AP_RANGEFINDER_BENEWAKE_TF03_ENABLED
|
|
|
|
|
2019-11-01 04:03:17 -03:00
|
|
|
class AP_RangeFinder_Benewake_TF03 : public AP_RangeFinder_Benewake
|
|
|
|
{
|
|
|
|
public:
|
2022-06-22 08:03:22 -03:00
|
|
|
|
|
|
|
static AP_RangeFinder_Backend_Serial *create(
|
|
|
|
RangeFinder::RangeFinder_State &_state,
|
|
|
|
AP_RangeFinder_Params &_params) {
|
|
|
|
return new AP_RangeFinder_Benewake_TF03(_state, _params);
|
|
|
|
}
|
2019-11-01 04:03:17 -03:00
|
|
|
|
|
|
|
protected:
|
|
|
|
float model_dist_max_cm() const override { return 18000; }
|
2022-06-22 08:03:22 -03:00
|
|
|
|
|
|
|
private:
|
|
|
|
using AP_RangeFinder_Benewake::AP_RangeFinder_Benewake;
|
2019-11-01 04:03:17 -03:00
|
|
|
};
|
2022-03-12 06:37:29 -04:00
|
|
|
|
|
|
|
#endif // AP_RANGEFINDER_BENEWAKE_TF03_ENABLED
|