You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
457 B
15 lines
457 B
#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: |
|
AP_RangeFinder_MaxsonarLV(); |
|
int convert_raw_to_distance(int raw_value) { return raw_value * 2.54; } // read value from analog port and return distance in cm |
|
}; |
|
#endif
|
|
|