Go to Post Without the game, there is no FIRST ... period. - Paul Copioli [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
  #1   Spotlight this post!  
Unread 08-01-2009, 23:59
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Windriver Timing the fast loops, Timer.h?

Is it okay to use the timer class in windriver for quick times. I am trying to get the time between the fast loops, but I am not sure how to achieve this. I see in the IterativeRobot.cpp that they implement a timer, maybe instead of creating my own I can get something from that one. This is how I had first though of using it with its own timer (it would start in the constructor):

Code:
void Robot::AutonomousContinuous()
{
	Timer->Stop();
	m_class.Process(Timer->Get());
	Timer->Reset();
	Timer->Start();
}
Or maybe there is a better way of doing this? I want to make sure that I am getting an accurate time if that's possible.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
 


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 00:04.

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