|
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.
|