Go to Post If you always do what you’ve always done, you’ll always get what you’ve always gotten. - rourke [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #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.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:05.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi