Aria
2.8.0
|
A class for keeping track of if a complete revolution has been attained. More...
#include <ariaUtil.h>
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 |
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.