2010-12-16 23:01:29 -04:00
|
|
|
#ifndef AP_RangeFinder_MaxsonarXL_H
|
|
|
|
#define AP_RangeFinder_MaxsonarXL_H
|
|
|
|
|
|
|
|
#include "RangeFinder.h"
|
|
|
|
|
|
|
|
#define AP_RANGEFINDER_MAXSONARXL_MIN_DISTANCE 20
|
|
|
|
#define AP_RANGEFINDER_MAXSONARXL_MAX_DISTANCE 700
|
|
|
|
|
|
|
|
class AP_RangeFinder_MaxsonarXL : public RangeFinder
|
2011-07-30 17:35:36 -03:00
|
|
|
{
|
|
|
|
// public:
|
|
|
|
//AP_GPS_MTK(Stream *s);
|
2010-12-16 23:01:29 -04:00
|
|
|
public:
|
2011-11-12 23:16:31 -04:00
|
|
|
AP_RangeFinder_MaxsonarXL(AP_AnalogSource *source, ModeFilter *filter);
|
2011-07-30 17:35:36 -03:00
|
|
|
|
2011-05-04 16:12:27 -03:00
|
|
|
int convert_raw_to_distance(int _raw_value) { return _raw_value; } // read value from analog port and return distance in cm
|
2010-12-16 23:01:29 -04:00
|
|
|
};
|
|
|
|
#endif
|