Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

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 Member Functions

 ArSectors (int numSectors=8)
 Constructor.
void clear (void)
 Clears all quadrants.
bool didAll (void) const
 Returns true if the all of the quadrants have been gone through.
void update (double angle)
 Updates the appropriate quadrant for the given angle.
virtual ~ArSectors ()
 Destructor.

Protected Attributes

int myNumSectors
int * mySectors
int mySectorSize


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.

Definition at line 744 of file ariaUtil.h.


The documentation for this class was generated from the following file:
Generated on Wed Oct 19 12:56:54 2005 for Aria by  doxygen 1.4.0