View Single Post
  #2   Spotlight this post!  
Unread 22-02-2011, 10:01
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,517
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Code doesnt work With While Loops

Loops in the teleop section of the code will not work. Teleop already loops at speeds between 15 and 50 ms (depending on the comms from the driver station and your code). Putting a loop in means that teleop has to wait to loop until your loop is complete. That will cause all the watch-dog safety timers to trip because teleop will take too long.

That is in direct opposition to autonomous independent, which only runs once and CAN have loops in it.

That's why I've never like having independent - it's a distinctly different programming structure than what happens in teleop and causes confusion.
Reply With Quote