|
LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
|
#include <abstractRate.hpp>
Public Member Functions | |
| virtual | ~AbstractRate () |
| virtual void | delay (QFrequency ihz)=0 |
| Delay the current task such that it runs at the given frequency. | |
| virtual void | delayUntil (QTime itime)=0 |
| Delay the current task until itime has passed. | |
| virtual void | delayUntil (uint32_t ims)=0 |
| Delay the current task until ims milliseconds have passed. | |
Definition at line 13 of file abstractRate.hpp.
|
virtual |
|
pure virtual |
Delay the current task such that it runs at the given frequency.
The first delay will run for 1000/(ihz). Subsequent delays will adjust according to the previous runtime of the task.
| ihz | the frequency |
Implemented in okapi::Rate.
|
pure virtual |
Delay the current task until itime has passed.
This method can be used by periodic tasks to ensure a consistent execution frequency.
| itime | the time period |
Implemented in okapi::Rate.
|
pure virtual |
Delay the current task until ims milliseconds have passed.
This method can be used by periodic tasks to ensure a consistent execution frequency.
| ims | the time period |
Implemented in okapi::Rate.