View Single Post
  #6   Spotlight this post!  
Unread 23-03-2013, 18:40
NeatNit's Avatar
NeatNit NeatNit is offline
Alumni Programmer
FRC #1577 (Steampunk)
Team Role: Teacher
 
Join Date: Sep 2011
Rookie Year: 2011
Location: Israel
Posts: 60
NeatNit is an unknown quantity at this point
Re: Autonomous failure

Basically, you must never control the same thing in two places at the same time. There are many ways to solve this - you can make that part of Periodic not run during Autonomous, or you could send commands to Global in Autonomous (and TeleOp) and only have Periodic output them to the solenoid. Or, as you said, you could move the part in Periodic to Teleop, but I wouldn't recommend this as we've had a lot of problems with too much code in Teleop (even if that code is very simple, there's just too much of it and it has to run faster).
Reply With Quote