Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

get_time.h File Reference

prototype for get_time(), a simple way to get the current time since boot in milliseconds More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  project_get_time
 

If we're running locally, these will let users in "project" space control time for simulation.


Functions

unsigned int get_time ()
 This will call and return project_get_time::get_time_callback if project_get_time::simulation_time is -1. Otherwise simulation_time is returned.
float getTimeScale ()
 If project_get_time::get_timeScale_callback is NULL, this will return 1 if project_get_time::simulation_time is -1U (the default value), and -1 otherwise. If the callback is available, returns that.

Detailed Description

prototype for get_time(), a simple way to get the current time since boot in milliseconds

Author:
ejt (Creator)

Definition in file get_time.h.


Function Documentation

unsigned int get_time (  ) 

This will call and return project_get_time::get_time_callback if project_get_time::simulation_time is -1. Otherwise simulation_time is returned.

Default values are set such that the system clock will be used, and values will range from 0 (first call) onward. However, by reassigning project_get_time::get_time_callback to your own function, you can control the flow of time however you wish.

Definition at line 38 of file get_time.h.

Referenced by LedEngine::cflash(), SegCam::closePacket(), RawCam::closePacket(), DepthCam::closePacket(), WaypointEngine::cycle(), LedEngine::cycle(), EventRouter::dispTimers(), SegCam::doEvent(), RawCam::doEvent(), DepthCam::doEvent(), WMMonitorBehavior::encodeHeader(), LedEngine::flash(), EmergencyStopMC::freezeJoints(), SineMC::getCount(), MotionManager::getOutputs(), HolonomicMotionModel< ParticleT >::getPosition(), LedNode::getPrivateMC(), Kodu::KoduConditionTimer::getTimeInSec(), WheeledWalkMC::getTravelTime(), LedEngine::getValue(), WaypointEngine::go(), PostureMC::isAlive(), HeadPointerMC::isAlive(), ArmMC::isAlive(), LedEngine::isDirty(), EventLogger::logImage(), EventLogger::logMessage(), EventLogger::logWebcam(), XWalkMC::ParameterTransition::plistValueChanged(), LogNode::postStart(), StateNode::postStateCompletion(), StateNode::postStateStop(), EventRouter::processTimers(), WorldState::read(), LedEngine::recalcFlashEnd(), EmergencyStopMC::releaseJoints(), MotionSequenceEngine::resume(), EventRouter::TimerEntry::Set(), ArmMC::setGripperPulse(), TailWagMC::setPeriod(), HolonomicMotionModel< ParticleT >::setPosition(), GaitedFootstepMC::setSteps(), XWalkMC::setTargetDisplacement(), XWalkMC::setTargetVelocity(), WaypointEngine::setTargetWaypoint(), WalkCalibration::setupMoving(), HolonomicMotionModel< ParticleT >::setVelocity(), XWalkMC::start(), SineMC::sync(), SineMC::syncAll(), Controller::trapEvent(), WaypointEngine::unpause(), LedEngine::updateLEDFrames(), LedEngine::updateLEDs(), HolonomicMotionModel< ParticleT >::updateMotion(), XWalkMC::updateOutputs(), TailWagMC::updateOutputs(), SineMC::updateOutputs(), PostureMC::updateOutputs(), MotionSequenceEngine::updateOutputs(), HeadPointerMC::updateOutputs(), GaitedFootstepMC::updateOutputs(), EmergencyStopMC::updateOutputs(), ArmMC::updateOutputs(), XWalkMC::updateOutputsInitial(), and XWalkMC::zeroVelocities().

float getTimeScale (  ) 

If project_get_time::get_timeScale_callback is NULL, this will return 1 if project_get_time::simulation_time is -1U (the default value), and -1 otherwise. If the callback is available, returns that.

Definition at line 46 of file get_time.h.


Tekkotsu v5.1CVS
Generated Mon May 9 04:58:56 2016 by Doxygen 1.6.3