DUNE: Uniform Navigational Environment
2.3.0
|
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 Sensors::Edgetech2205::Task::checkActivationProgress().
|
inline |
Get remaining time.
Referenced by Power::DOAMv2::Task::checkActivation(), Power::DOAMv1::Task::checkActivation(), Sensors::Imagenex837B::Task::checkActivationProgress(), and DUNE::Hardware::BasicModem::readLine().
|
inline |
Get top value.
|
inline |
Check if the counter has reached the top value.
Referenced by Control::AUV::RemoteOperation::Task::actuate(), Power::DOAMv2::Task::checkActivation(), Power::DOAMv1::Task::checkActivation(), Sensors::Imagenex837B::Task::checkActivationProgress(), Sensors::Edgetech2205::Task::checkActivationProgress(), Power::DOAMv2::Task::checkDeactivation(), Sensors::Edgetech2205::Task::checkDeactivationProgress(), DUNE::Navigation::BasicNavigation::checkUncertainty(), DUNE::Control::BasicAutopilot::consume(), DUNE::Control::PathController::consume(), DUNE::Navigation::BasicNavigation::consume(), Maneuver::FollowSystem::Task::consume(), Transports::LoggingDigest::Task::flush(), DUNE::Navigation::BasicNavigation::getAltitude(), DUNE::Hardware::BasicModem::isCooling(), Navigation::General::ROV::Task::logData(), Navigation::AUV::SGNavigation::Task::logData(), DUNE::Daemon::onMain(), Sensors::XchangeSV::Task::onMain(), Navigation::General::GPSNavigation::Task::onMain(), Monitors::Clock::Task::onMain(), Actuators::SCRTv4::Task::onMain(), Simulators::LBL::Task::onMain(), Sensors::SonTekArgonaut::Task::onMain(), Sensors::IFOG::Task::onMain(), Actuators::LED4R::Task::onMain(), Actuators::SIMCT01::Task::onMain(), Sensors::Imagenex852::Task::onMain(), Sensors::XR620CTD::Task::onMain(), Sensors::OS4000::Task::onMain(), Sensors::LIMU::Task::onMain(), Vision::DFK51BG02H::Task::onMain(), Sensors::Microstrain3DMGX1::Task::onMain(), Sensors::MLBLTracker::Task::onMain(), Sensors::MLBL::Task::onMain(), Maneuver::FollowSystem::Task::onStateReport(), Transports::GSM::Task::pollStatus(), Transports::IridiumSBD::Task::processQueue(), Navigation::AUV::SGNavigation::Task::resetMatrixA(), Transports::UDP::LimitedComms::setMyPosition(), Sensors::SW100::Task::task(), Monitors::Emergency::Task::task(), Actuators::SingleSIMCT01::Task::task(), Navigation::General::ROV::Task::task(), Navigation::AUV::SGNavigation::Task::task(), Actuators::SCRT::Task::task(), Sensors::Microstrain3DMGX3::Task::task(), Sensors::Imagenex837B::Task::task(), and Transports::LoggingDigest::Task::writeSample().
|
inline |
Reset counter.
Referenced by Sensors::OS4000::Task::calibrating(), DUNE::Control::BasicAutopilot::consume(), Navigation::General::GPSNavigation::Task::consume(), Maneuver::FollowSystem::Task::consume(), DUNE::Navigation::BasicNavigation::consume(), Monitors::Emergency::Task::consume(), Control::AUV::RemoteOperation::Task::consume(), DUNE::Time::Counter< float >::Counter(), Sensors::LIMU::Task::decodeOutputData(), Transports::LoggingDigest::Task::flush(), Actuators::LED4R::Task::getMonitors(), Transports::IridiumSBD::Task::handleSessionResult(), Actuators::SCRTv4::Task::handleState(), Simulators::LBL::Task::onActivation(), DUNE::Daemon::onMain(), Sensors::XchangeSV::Task::onMain(), Simulators::LBL::Task::onMain(), Sensors::IFOG::Task::onMain(), Actuators::SIMCT01::Task::onMain(), Sensors::Imagenex852::Task::onMain(), Sensors::XR620CTD::Task::onMain(), Sensors::OS4000::Task::onMain(), Vision::DFK51BG02H::Task::onMain(), Sensors::Microstrain3DMGX1::Task::onMain(), Sensors::MLBLTracker::Task::onMain(), Sensors::MLBL::Task::onMain(), Sensors::Imagenex837B::Task::onRequestActivation(), Actuators::SIMCT01::Task::onResourceInitialization(), Actuators::LED4R::Task::onResourceInitialization(), Sensors::OS4000::Task::onResourceInitialization(), Transports::GSM::Task::pollStatus(), Sensors::SonTekArgonaut::Task::readSample(), Navigation::AUV::Navigation::Task::runKalmanGPS(), Actuators::LED4R::Task::setBrightness(), DUNE::Hardware::BasicModem::setBusy(), DUNE::Time::Counter< float >::setTop(), Sensors::SW100::Task::task(), Monitors::Emergency::Task::task(), Actuators::SingleSIMCT01::Task::task(), Navigation::General::ROV::Task::task(), Navigation::AUV::SGNavigation::Task::task(), Actuators::SCRT::Task::task(), Sensors::Microstrain3DMGX3::Task::task(), Sensors::Imagenex837B::Task::task(), Simulators::LBL::Task::updateBeacons(), and Transports::LoggingDigest::Task::writeSample().
|
inline |
Set top value.
top | counter's top value. |
Referenced by DUNE::Control::PathController::consume(), DUNE::Time::Counter< float >::Counter(), Transports::UDP::LimitedComms::LimitedComms(), Power::DOAMv2::Task::onRequestActivation(), Sensors::Edgetech2205::Task::onRequestActivation(), Power::DOAMv1::Task::onRequestActivation(), Power::DOAMv2::Task::onRequestDeactivation(), Sensors::Edgetech2205::Task::onRequestDeactivation(), Sensors::XR620CTD::Task::onResourceAcquisition(), Sensors::Imagenex852::Task::onResourceAcquisition(), DUNE::Daemon::onResourceInitialization(), Monitors::Emergency::Task::onResourceInitialization(), Sensors::XchangeSV::Task::onResourceInitialization(), Sensors::SW100::Task::onResourceInitialization(), Monitors::Clock::Task::onResourceInitialization(), Sensors::Microstrain3DMGX1::Task::onResourceInitialization(), Actuators::SCRTv4::Task::onResourceInitialization(), Sensors::LIMU::Task::onResourceInitialization(), Sensors::IFOG::Task::onResourceInitialization(), Sensors::Microstrain3DMGX3::Task::onResourceInitialization(), Transports::LoggingDigest::Task::onUpdateParameters(), Sensors::SonTekArgonaut::Task::onUpdateParameters(), Maneuver::FollowSystem::Task::onUpdateParameters(), DUNE::Navigation::BasicNavigation::onUpdateParameters(), Transports::IridiumSBD::Task::onUpdateParameters(), Control::AUV::RemoteOperation::Task::onUpdateParameters(), Transports::GSM::Task::onUpdateParameters(), Actuators::SIMCT01::Task::onUpdateParameters(), Actuators::LED4R::Task::onUpdateParameters(), Simulators::LBL::Task::onUpdateParameters(), Actuators::SCRT::Task::onUpdateParameters(), Sensors::OS4000::Task::onUpdateParameters(), Sensors::MLBLTracker::Task::onUpdateParameters(), Sensors::MLBL::Task::onUpdateParameters(), Sensors::Imagenex837B::Task::onUpdateParameters(), DUNE::Control::BasicAutopilot::reset(), DUNE::Hardware::BasicModem::setTxRateMax(), and Navigation::General::GPSNavigation::Task::Task().