RaidZeroLib
Coroutine robot framework for VEX V5
Loading...
Searching...
No Matches
rz::Settled< Error > Class Template Reference

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 ()

Detailed Description

template<class Error>
class rz::Settled< Error >

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.

Constructor & Destructor Documentation

◆ Settled()

template<class Error>
rz::Settled< Error >::Settled ( Config config)
inlineexplicit

Member Function Documentation

◆ reset()

template<class Error>
void rz::Settled< Error >::reset ( )
inline

◆ update()

template<class Error>
bool rz::Settled< Error >::update ( Error error,
Time now )
inlinenodiscard

Whether error (measured at now) has been within the tolerance for the configured time.


The documentation for this class was generated from the following file: