![]() |
RaidZeroLib
Coroutine robot framework for VEX V5
|
Whether an error has stayed within a tolerance for long enough, e.g. Settled<Angle> to end a turn. More...
#include <Settled.hpp>
Classes | |
| struct | Config |
Public Member Functions | |
| Settled (Config config) | |
| bool | update (Error error, Time now) |
| Whether error (measured at now) has been within the tolerance for the configured time. | |
| void | reset () |
Whether an error has stayed within a tolerance for long enough, e.g. Settled<Angle> to end a turn.
Leaving the tolerance restarts the wait, so overshooting through the target does not count as settled.
|
inlineexplicit |
|
inline |
|
inlinenodiscard |
Whether error (measured at now) has been within the tolerance for the configured time.