Go to Post Think about the other teams...today your opponent, today your teammate. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-03-2012, 08:49
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Startup Delay

Actually, I don't think that is a normal place for a delay.

From memory, here is what I'm used to seeing.

Powering the robot will have a delay, waiting for the various devices to power up. LEDs will appear almost instantly and start blinking through their startup sequences. If you are tethered, you will have a communications light in about 15 seconds. If you aren't tethered, it takes about 40 to 50 seconds for the wifi to be up.

After communications is up, the OS on the cRIO boots, and then the user program. As the user program boots it will run through Begin or other initialization code and start running Periodic and Vision.

At this point, the code should be able to process packets from the DS, and those should be disabled. Every 20ms, the DS receives a packet from the DS, either auto, tele, or disabled. It will process that packet as soon as it looks for it. The transition from disabled to tele should take one packet of delay. That transition will call disabled one last time as a shutdown condition, and I think the next packet calls the actual teleop.

In order to better debug this, can you describe more about when the delay happens? Is it each time you enable tele, the first time, or occasionally? Is it always the same amount of time? Do you have any messages on the Diagnostics?

If you know when the delay is likely to happen, then you can open panels to see what is going on, or watch the Charts tab of the DS to see what code is reported as running.

Greg McKaskle
Reply With Quote
Reply


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


All times are GMT -5. The time now is 22:07.

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