mirror of https://github.com/ArduPilot/ardupilot
16 lines
392 B
C++
16 lines
392 B
C++
#ifndef AP_RangeFinder_MaxsonarLV_H
|
|
#define AP_RangeFinder_MaxsonarLV_H
|
|
|
|
#include "RangeFinder.h"
|
|
|
|
#define AP_RANGEFINDER_MAXSONARLV_MIN_DISTANCE 15
|
|
#define AP_RANGEFINDER_MAXSONARLV_MAX_DISTANCE 645
|
|
|
|
class AP_RangeFinder_MaxsonarLV : public RangeFinder
|
|
{
|
|
public:
|
|
void init(int analogPort);
|
|
int read(); // read value from analog port and return distance in cm
|
|
};
|
|
#endif
|