|
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).
|