Main Page   Class Hierarchy   Compound List   Compound Members  

ArSectors Class Reference

A class for keeping track of if a complete revolution has been attained. More...

#include <ariaUtil.h>

List of all members.

Public Methods

 ArSectors (int numSectors=8)
 Constructor.

virtual ~ArSectors (void)
 Destructor.

void clear (void)
 Clears all quadrants.

void update (double angle)
 Updates the appropriate quadrant for the given angle.

bool didAll (void)
 Returns true if the all of the quadrants have been gone through.


Detailed Description

A class for keeping track of if a complete revolution has been attained.

This class can be used to keep track of if a complete revolution has been done, it is used by doing doing a clearQuadrants when you want to stat the revolution. Then at each point doing an updateQuadrant with the current heading of the robot. When didAllQuadrants returns true, then all the quadrants have been done.


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