Go to Post GP is a code which is lived by, not a yardstick to measure others by. - Daniel_LaFleur [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-01-2009, 14:16
Zorkinian Zorkinian is offline
Registered User
AKA: John Gilbert
FRC #0488 (Xbot)
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2003
Location: Redmond, WA
Posts: 24
Zorkinian is on a distinguished road
Timing with the Driver Station

Does anybody know the rate at which packets arrive at the cRIO from the driver station? Is it a constant?
  #2   Spotlight this post!  
Unread 09-01-2009, 17:47
whitetiger0990's Avatar
whitetiger0990 whitetiger0990 is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Earth
Posts: 157
whitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of light
Re: Timing with the Driver Station

I can't find anything specifically, but I would say it is not constant. It's a TCP stream as far as I am aware.

You probably shouldn't depend on DS packet timing, but instead use a different timer which you can control.
__________________
print$q=chr(ord($q)+$1)while("7443-0201-8465130105-12-03135-82482113-06-7672-070208-0613-70"=~/(-?\d\d)/g);
  #3   Spotlight this post!  
Unread 09-01-2009, 17:51
mgurgol mgurgol is offline
Registered User
FRC #1094
 
Join Date: Jan 2006
Location: St Louis MO
Posts: 76
mgurgol is just really nicemgurgol is just really nicemgurgol is just really nicemgurgol is just really nicemgurgol is just really nice
Re: Timing with the Driver Station

Is there a way to calculate delta time in Labview?
  #4   Spotlight this post!  
Unread 09-01-2009, 19:30
Zorkinian Zorkinian is offline
Registered User
AKA: John Gilbert
FRC #0488 (Xbot)
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2003
Location: Redmond, WA
Posts: 24
Zorkinian is on a distinguished road
Re: Timing with the Driver Station

There may be a way, though I haven't tested it. Under Real-Time -> Real-Time Timing there is a tick count (presumably of the processor) that you read from, which you can also set to mSec or uSec, which would probaby get you the resolutino you need.
  #5   Spotlight this post!  
Unread 09-01-2009, 23:25
whitetiger0990's Avatar
whitetiger0990 whitetiger0990 is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Earth
Posts: 157
whitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of light
Re: Timing with the Driver Station

Under Timers, use Tick Count. It's millisecond resolution so it should be enough. Then just save the value through whatever method you want and subtract from the current Tick Count whenever you want the delta.
__________________
print$q=chr(ord($q)+$1)while("7443-0201-8465130105-12-03135-82482113-06-7672-070208-0613-70"=~/(-?\d\d)/g);
  #6   Spotlight this post!  
Unread 09-01-2009, 23:37
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Timing with the Driver Station

50Hz (it's in the headers if you look)
  #7   Spotlight this post!  
Unread 10-01-2009, 09:42
mgurgol mgurgol is offline
Registered User
FRC #1094
 
Join Date: Jan 2006
Location: St Louis MO
Posts: 76
mgurgol is just really nicemgurgol is just really nicemgurgol is just really nicemgurgol is just really nicemgurgol is just really nice
Re: Timing with the Driver Station

Thanks for the info on delta time, I'll create a shift register.
Closed Thread


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
Help with updating firmware on Driver Station urg8rb8 FRC Control System 3 28-12-2008 02:53
Securing the Driver Station? Madison FRC Control System 16 16-12-2008 03:05
Mounting the Driver Station...? 1708xMr.Roboto FRC Control System 1 15-12-2008 12:34
pic: The new driver station Billfred Extra Discussion 28 23-04-2008 20:07
pic: Why FIRST needs to make the driver station taller Jay Trzaskos Extra Discussion 12 12-03-2007 08:57


All times are GMT -5. The time now is 02:42.

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