View Single Post
  #5   Spotlight this post!  
Unread 19-12-2012, 19:41
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: getting stuck in autonomous or hybrid on the field

Just curious (never looked at c++), does the wpilib for c++ have two classes like in Java? (SimpleRobot, IterativeRobot) If you used IterativeRobot, you could use teleopPeriodic() and autonomousPeriodic(), and not ever worry about bugs like this. (from your code, it looks identical to the purpose of Periodic methods)
__________________
All opinions are my own.