View Single Post
  #3   Spotlight this post!  
Unread 05-02-2011, 20:36
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: BDCComm Settings for Speed Mode Testing?

I was having the same trouble with the Quadrature Encoder setting on my team's robot, but I haven't gotten around to testing it.
It may be a bug in the Jaguar firmware.

"Encoder" and "Inverted encoder" only use one channel of the encoder for speed, and assume the direction based on its output. I believe the only difference is that "inverted encoder" switches the "forward" direction for the motor, though I've no idea if this corresponds to the LED color.
One trouble with these modes is that "encoder" will always return a positive value when you ask its speed, and "inverted encoder" will always return a negative.

Quadrature encoder, however, uses both channels of the encoder to determine the speed AND direction.


As for tuning, I found (0.1, 0.05, 0) works well for my team's robot. I think this is due to the slop in the chain. On my test robot, my tuning is around (3, 0.1, 0).


One way to check if your encoders are properly connected is to try them in POSITION mode. Note that your PID coeffecients in Position mode can be significantly different from your coeffecients in speed mode, and you DEFINITELY need integral to get to your setpoint.
__________________
-- Marshal Horn
Reply With Quote