MSP Range finder added (#13980)
[betaflight.git] / src / main / drivers / rangefinder / rangefinder_lidarmt.h
blob009c9f2b0b0d7384203261a9f8b61ea5c52a34ba
1 /*
2 * This file is part of Betaflight and INAV
4 * Betaflight and INAV are free software. You can
5 * redistribute this software and/or modify this software under
6 * the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License,
8 * or (at your option) any later version.
10 * Betaflight and INAV are distributed in the hope that
11 * they will be useful, but WITHOUT ANY WARRANTY; without even the
12 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 * PURPOSE. See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this software.
18 * If not, see <http://www.gnu.org/licenses/>.
21 #pragma once
23 #include "drivers/rangefinder/rangefinder.h"
24 #include "sensors/rangefinder.h"
26 #define RANGEFINDER_MT_DETECTION_CONE_DECIDEGREES 900
28 typedef struct {
29 rangefinderType_e deviceType;
30 uint8_t delayMs;
31 uint16_t maxRangeCm;
32 } MTRangefinderConfig;
34 bool mtRangefinderDetect(rangefinderDev_t * dev, rangefinderType_e mtRangefinderToUse);
35 void mtRangefinderReceiveNewData(const uint8_t * bufferPtr);
36 const MTRangefinderConfig* getMTRangefinderDeviceConf(rangefinderType_e mtRangefinderToUse);