DUNE: Uniform Navigational Environment
2019.02.1
|
Simple time counter.
This class checks if the amount of time elapsed since the last call to reset() is greater than the top value.
Public Member Functions | |
Counter (T top=0.0) | |
void | setTop (T top) |
T | getTop (void) const |
T | reset (void) |
bool | overflow (void) |
T | getRemaining (void) const |
T | getElapsed (void) const |
|
inline |
Constructor.
top | counter's top value. |
|
inline |
Get elapsed time.
Referenced by DUNE::Hardware::BasicDeviceDriver::BasicDeviceDriver().
|
inline |
Get remaining time.
Referenced by DUNE::Hardware::BasicModem::readLine(), DUNE::Hardware::BasicModem::readRaw(), and DUNE::Hardware::UCTK::Interface::sendFrame().
|
inline |
Get top value.
|
inline |
Check if the counter has reached the top value.
Referenced by Actuators::PWM::ServoPwm::CheckGPIOSate(), DUNE::Navigation::BasicNavigation::checkUncertainty(), DUNE::Hardware::BasicDeviceDriver::consume(), DUNE::Control::PathController::consume(), DUNE::Navigation::StreamEstimator::consume(), DUNE::Control::BasicAutopilot::consume(), DUNE::Navigation::BasicNavigation::consume(), DUNE::Navigation::BasicNavigation::getAltitude(), DUNE::Hardware::BasicModem::isCooling(), DUNE::Monitors::VerticalMonitor::isProgressSlow(), DUNE::Daemon::onMain(), DUNE::Hardware::BasicModem::readRaw(), DUNE::Hardware::UCTK::Interface::sendFrame(), Transports::UDP::LimitedComms::setMyPosition(), Navigation::General::ROV::Task::task(), Control::ROV::RemoteOperation::Task::toggleWallTracker(), and Transports::FTP::Session::~Session().
|
inline |
Reset counter.
Referenced by Actuators::PWM::ServoPwm::CheckGPIOSate(), DUNE::Navigation::StreamEstimator::consume(), DUNE::Control::BasicAutopilot::consume(), DUNE::Navigation::BasicNavigation::consume(), DUNE::Time::Counter< float >::Counter(), DUNE::Monitors::VerticalMonitor::isProgressSlow(), DUNE::Daemon::onMain(), DUNE::Hardware::BasicModem::setBusy(), DUNE::Time::Counter< float >::setTop(), Navigation::General::ROV::Task::task(), Control::ROV::RemoteOperation::Task::toggleWallTracker(), and Transports::FTP::Session::~Session().
|
inline |
Set top value.
top | counter's top value. |
Referenced by Actuators::PWM::ServoPwm::CheckGPIOSate(), DUNE::Hardware::BasicDeviceDriver::consume(), DUNE::Control::PathController::consume(), DUNE::Control::BasicAutopilot::consume(), DUNE::Time::Counter< float >::Counter(), Transports::UDP::LimitedComms::LimitedComms(), DUNE::Daemon::onResourceInitialization(), Control::ROV::RemoteOperation::Task::onResourceInitialization(), DUNE::Navigation::BasicNavigation::onUpdateParameters(), DUNE::Control::BasicAutopilot::reset(), DUNE::Hardware::BasicModem::setTxRateMax(), DUNE::Navigation::StreamEstimator::StreamEstimator(), and DUNE::Monitors::VerticalMonitor::VerticalMonitor().