Main Page   Class Hierarchy   Compound List   Compound Members  

ArIrrfDevice Class Reference

A class for connecting to a PB-9 and managing the resulting data. More...

#include <ArIrrfDevice.h>

Inheritance diagram for ArIrrfDevice::

ArRangeDevice List of all members.

Public Methods

 ArIrrfDevice (size_t currentBufferSize=91, size_t cumulativeBufferSize=273, const char *name="irrf")
 Constructor.

 ~ArIrrfDevice (void)
 Destructor.

bool packetHandler (ArRobotPacket *packet)
 The packet handler for use when connecting to an H8 micro-controller. More...

void setCumulativeMaxRange (double r)
 Maximum range for a reading to be added to the cumulative buffer (mm).

virtual void setRobot (ArRobot *)
 Sets the robot this device is attached to.


Detailed Description

A class for connecting to a PB-9 and managing the resulting data.

This class is for use with a PB9 IR rangefinder. It has the packethandler necessary to process the packets, and will put the data into ArRangeBuffers for use with obstacle avoidance, etc.

The PB9 is still under development, and only works on an H8 controller running AROS.


Member Function Documentation

bool ArIrrfDevice::packetHandler ArRobotPacket   packet
 

The packet handler for use when connecting to an H8 micro-controller.

This is the packet handler for the PB9 data, which is sent via the micro controller, to the client. This will read the data from the packets, and then call processReadings to filter add the data to the current and cumulative buffers.


The documentation for this class was generated from the following files:
Generated on Tue Nov 12 17:43:57 2002 for Aria by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001