ardupilot/libraries/AP_RangeFinder/AP_RangeFinder_Benewake_TFMini.h
Peter Barker deba0b712b AP_RangeFinder: correct creation/use of TFMINI_ADDR_DEFAULT
Named incorrectly and defined in wrong file...
2022-06-21 09:15:20 +10:00

21 lines
534 B
C++

#pragma once
#include "AP_RangeFinder_Benewake.h"
#ifndef AP_RANGEFINDER_BENEWAKE_TFMINI_ENABLED
#define AP_RANGEFINDER_BENEWAKE_TFMINI_ENABLED (AP_RANGEFINDER_BENEWAKE_ENABLED && AP_RANGEFINDER_BACKEND_DEFAULT_ENABLED)
#endif
#if AP_RANGEFINDER_BENEWAKE_TFMINI_ENABLED
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; }
};
#endif // AP_RANGEFINDER_BENEWAKE_TFMINI