Go to Post Don't trust everything you read on Chief Delphi. - Peter Matteson [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 09-01-2009, 00:19
Jlulian Jlulian is offline
Registered User
AKA: Julian Moore
FRC #0004
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: CA
Posts: 5
Jlulian is an unknown quantity at this point
Re: Windriver Timing the fast loops, Timer.h?

You could use the timer class, but in the same header as that is defined is the "GetTime()" function, which is used internally in the class, and is simpler to work with.

Using it would look something like this:
Code:
void Robot::AutonomousContinuous()
{
	double timeChange = GetTime() - lastTime
	//Time dependent Code..
	lastTime = GetTime();
}
(this code snippet assumes you've got a lastTime variable in your class)
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Axis Camera responding in the Vision Assistant but not in WindRiver DanDon C/C++ 3 11-01-2009 12:50
timer in the robot controler MaCaBi Programming 2 06-02-2006 13:55
We geared this one really fast, so fast it caught on fire! Travis Covington Robot Showcase 18 12-02-2005 07:22
How fast is fast to get on the hill? ianbbat General Forum 76 09-03-2003 21:05
Solution to Timing Loops Steven Carmain Programming 39 10-02-2003 13:33


All times are GMT -5. The time now is 19:23.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi