View Single Post
  #21   Spotlight this post!  
Unread 31-01-2014, 14:59
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,602
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Help A Brotha Out. Error 44002 and 44004.

Quote:
Originally Posted by sukhjinder564 View Post
I would recommend simplifying the operator control for now.

I have never used the Timer function in teleop, so this timer may be throwing your code off, but if the code is not being reached, make sure the conditions of the while loop are being satisfied. Or you could just remove the while loop entirely and see how that works.

This may or may not work for SimpleRobot, as I always use IterativeRobot.

Does the operatorControl() function run periodically?
That is appropriate advice for IterativeRobot, but not SimpleRobot. In simpleRobot, operatorControl is called once. It is the users responsibility to provide a while loop and to provide a delay (to avoid pegging the CPU).