Go to Post See, the boyfriend/girlfriend IS the robot. :D - sanddrag [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 01-04-2010, 08:44
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,880
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: 1s Delay Affecting Driver Controls (FTC)

You should add a timer to each of your two parallel While loops to prevent one or the other from hogging the CPU. One loop could be starving the other loop. Add a 50ms Wait to the outer part of each While loop and that will periodically release the CPU to process other tasks.

Other than the obvious "Fire? = false" case causing a half second delay in that parallel loop, I don't see anything unusually slow in your code. Because it's parallel it shouldn't slow down the first loop.

The nested Cases aren't a problem unless something time consuming happens in one of the hidden ones. Can't see where the first Tick Count goes off to, but I don't imagine you're doing anything unusual with that either.
Attached Thumbnails
Click image for larger version

Name:	loopdelay.jpg
Views:	30
Size:	5.7 KB
ID:	8960  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 01-04-2010 at 09:31.
Reply With Quote
 


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
Driver Station Delay alex42 FRC Control System 2 09-02-2010 20:14
[FTC]: Toggle controls nate15810 FIRST Tech Challenge 17 17-02-2009 11:13
Bad Weather Affecting Teams Tonya Scott 476 General Forum 77 15-02-2007 14:02
pic: 383`s controls and driver Manoel Robot Showcase 13 03-03-2005 00:57
Ramp Affecting Robot Movement Yan Wang Rules/Strategy 6 26-02-2003 08:27


All times are GMT -5. The time now is 22: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