Thread: Startup Delay
View Single Post
  #5   Spotlight this post!  
Unread 13-03-2012, 20:36
hsekhon27 hsekhon27 is offline
Registered User
FRC #0280 (TNT)
Team Role: Programmer
 
Join Date: Dec 2011
Rookie Year: 2011
Location: Taylor, MI
Posts: 23
hsekhon27 is an unknown quantity at this point
Re: Startup Delay

Quote:
Originally Posted by Alan Anderson View Post
Did you change Robot Main? Teams are supposed to leave it alone and put all their custom code in other places.

I do see something that might be the cause of the problem. You chose your own name for the drive motors device reference. You didn't change the name from the default in Periodic Tasks, and you probably left it as the default in Disabled. Aren't you seeing continuous errors on your Driver Station when the robot is disabled, saying that "Left and Right Motors" is not defined? Those errors will clog up the communication, and could possibly be the reason for things remaining unresponsive for a few seconds after being enabled.

One other thing: your ball density check isn't in a loop. It's only going to run once when the program starts up.
Thanks!!

One more problem: Once the "Shoot" motors are in a loop in periodic tasks vi, they run in short intervals, like the motors will turn on and off automatically once I press button 8 or 9. What might be causing this problem?
Reply With Quote