View Single Post
  #2   Spotlight this post!  
Unread 16-02-2013, 08:49
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: Robot doesn't function with this code

The continuous functions no longer exist as part of IterativeRobot. Your drive code should instead be in teleopPeriodic().

Also, don't use things like
Code:
while (isOperatorControl() && isEnabled()) {
This is only for if you're using SimpleRobot. In IterativeRobot, this loop is already made for you, and calls the init() and periodic() functions of each mode. If you put another loop inside of periodic(), your code may have serious delay issues.
__________________
I code stuff.
Reply With Quote