View Single Post
  #1   Spotlight this post!  
Unread 08-02-2010, 23:09
buddyb's Avatar
buddyb buddyb is offline
Registered User
FRC #1885 (ILITE)
Team Role: Programmer
 
Join Date: Dec 2009
Rookie Year: 2008
Location: Haymarket, VA
Posts: 65
buddyb has a spectacular aura aboutbuddyb has a spectacular aura aboutbuddyb has a spectacular aura about
Re: [FTC]: LabView Encoder Problem

I'm not too familiar with this year's FTC LabVIEW, but what I've seen messes most programmers up with going a fixed distance is the encoder reading's sign. Check to make sure that the encoders you're using are going in a positive direction, not a negative one. If they're going in a negative one, you'll have just over 2,100,000,000 degrees to go before your robot stops.

If they're going in a negative direction, flip the sign on your 'distance' parameter.

If this fails, then try the Constant Speed (move motors with PID Control) function, then wait X milliseconds, then stop the motors. I've found that this is more than accurate enough to base a solid autonomous around.

Good luck!
__________________
FRC - Team 1885 - Programmer.

Last edited by buddyb : 08-02-2010 at 23:31.
Reply With Quote