00001 #ifndef AP_RangeFinder_MaxsonarLV_H 00002 #define AP_RangeFinder_MaxsonarLV_H 00003 00004 #include "RangeFinder.h" 00005 00006 #define AP_RANGEFINDER_MAXSONARLV_MIN_DISTANCE 15 00007 #define AP_RANGEFINDER_MAXSONARLV_MAX_DISTANCE 645 00008 00009 class AP_RangeFinder_MaxsonarLV : public RangeFinder 00010 { 00011 public: 00012 void init(int analogPort); 00013 int read(); // read value from analog port and return distance in cm 00014 }; 00015 #endif