#include <RangeFinder.h>
Inherited by AP_RangeFinder_MaxsonarLV, AP_RangeFinder_MaxsonarXL, and AP_RangeFinder_SharpGP2Y.
Public Member Functions | |
int | filter (int latestValue) |
virtual void | init (int analogPort) |
virtual void | set_orientation (int x, int y, int z) |
virtual int | read () |
Public Attributes | |
int | _analogPort |
int | _history_ptr |
int | _history [AP_RANGEFINDER_NUM_AVERAGES] |
int | raw_value |
int | distance |
int | max_distance |
int | min_distance |
int | orientation_x |
int | orientation_y |
int | orientation_z |
Definition at line 19 of file RangeFinder.h.
int RangeFinder::filter | ( | int | latestValue | ) |
Definition at line 28 of file RangeFinder.cpp.
virtual void RangeFinder::init | ( | int | analogPort | ) | [virtual] |
Reimplemented in AP_RangeFinder_MaxsonarLV, AP_RangeFinder_MaxsonarXL, and AP_RangeFinder_SharpGP2Y.
virtual int RangeFinder::read | ( | ) | [virtual] |
Reimplemented in AP_RangeFinder_MaxsonarLV, AP_RangeFinder_MaxsonarXL, and AP_RangeFinder_SharpGP2Y.
void RangeFinder::set_orientation | ( | int | x, | |
int | y, | |||
int | z | |||
) | [virtual] |
Definition at line 20 of file RangeFinder.cpp.
Definition at line 22 of file RangeFinder.h.
int RangeFinder::_history[AP_RANGEFINDER_NUM_AVERAGES] |
Definition at line 24 of file RangeFinder.h.
Definition at line 23 of file RangeFinder.h.
Definition at line 27 of file RangeFinder.h.
Definition at line 28 of file RangeFinder.h.
Definition at line 29 of file RangeFinder.h.
Definition at line 30 of file RangeFinder.h.
Definition at line 30 of file RangeFinder.h.
Definition at line 30 of file RangeFinder.h.
Definition at line 26 of file RangeFinder.h.