View Single Post
  #5   Spotlight this post!  
Unread 28-01-2014, 20:11
sailorjoe sailorjoe is offline
Mentor, RoboEagles, FWHS
AKA: Joe Hafner
FRC #4579 (RoboEagles)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Auburn, WA
Posts: 10
sailorjoe is an unknown quantity at this point
Re: May I Please Have Some Help?

A quick review: I'm not sure, but I think you may need a time delay in your teleopPeriodic() function, and perhaps a while statement wrapping the whole thing.
I noticed that your pickup motor speed, at 50%, may be a bit high to maintain control of the ball. I'd start smaller, and build it up when the bot is built.
Lastly, think about how you're using the pickup encoder. It's not giving you an angle with the get() method, it's giving you a count, and it's an int. Angle is a double. While that will work in Java, of course, unless you're very lucky with the robot gears, the count will not be the same as the angle.
If I see something else, I'll let you know.