|
Re: While loop not working in autonomous
Could you provide some more context to your issue? Are you using the SimpleRobot or IterativeRobot base class? It would help to see the class this code is located in, or at least more of the surrounding code.
I'm not entirely sure what the issue is here. You set the relay to the forward value, and it will stay there until you set a new value for the relay. What is the desired behavior you are looking for?
__________________
LuNaTeCs - Learning Under Nurturing Adults Teaching Engineering Concepts and Skills - Small and Mighty!
FRC 316 LuNaTeCs - Student (2011-2014), Lead Programmer (2011-2014), Team Captain (2013-2014), Operator (2013), Drive Coach (2014), Mentor (2015-????)
'11 Philly Regional Finalists, '13 Chestnut Hill Finalists, '13 Lenape Champions, '13 Archimedes Division, '14 Chestnut Hill Champions, '14 Lenape Champions
FTC 7071 EngiNerds - Founding Advisor (2013-2014) | FRC 5420 Velocity - Founding Advisor (2015)
Grove City College Class of '18, Electrical/Computer Engineering (B.S.E.E)
|