Public Member Functions | Public Attributes

RangeFinder Class Reference

#include <RangeFinder.h>

Inherited by AP_RangeFinder_MaxsonarLV, AP_RangeFinder_MaxsonarXL, and AP_RangeFinder_SharpGP2Y.

List of all members.

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

Detailed Description

Definition at line 19 of file RangeFinder.h.


Member Function Documentation

int RangeFinder::filter ( int  latestValue  ) 

Definition at line 28 of file RangeFinder.cpp.

virtual void RangeFinder::init ( int  analogPort  )  [virtual]
virtual int RangeFinder::read (  )  [virtual]
void RangeFinder::set_orientation ( int  x,
int  y,
int  z 
) [virtual]

Definition at line 20 of file RangeFinder.cpp.


Member Data Documentation

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.


The documentation for this class was generated from the following files: