#include <ariaUtil.h>
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. |
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.