2019-11-01 04:03:17 -03:00
|
|
|
#pragma once
|
|
|
|
|
2023-07-06 01:25:14 -03:00
|
|
|
#include "AP_RangeFinder_config.h"
|
2022-03-12 06:37:29 -04:00
|
|
|
|
|
|
|
#if AP_RANGEFINDER_BENEWAKE_TF02_ENABLED
|
|
|
|
|
2023-07-06 01:25:14 -03:00
|
|
|
#include "AP_RangeFinder_Benewake.h"
|
|
|
|
|
2019-11-01 04:03:17 -03:00
|
|
|
class AP_RangeFinder_Benewake_TF02 : 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) {
|
2024-05-26 22:24:14 -03:00
|
|
|
return NEW_NOTHROW AP_RangeFinder_Benewake_TF02(_state, _params);
|
2022-06-22 08:03:22 -03:00
|
|
|
}
|
2019-11-01 04:03:17 -03:00
|
|
|
|
|
|
|
protected:
|
|
|
|
float model_dist_max_cm() const override { return 2200; }
|
|
|
|
bool has_signal_byte() const override { return true; }
|
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_TF02_ENABLED
|