|
Re: How to reset encoders used with CAN
Just checked the TI Jaguar firmware source code. The encoder position is set to 0.0 when the Jaguar powers on, and it can be set to an arbitrary number when you enable position control mode by calling ChangeControlMode(kPosition) then calling EnableControl(double initialPosition). It's the call to EnableControl while you're in kPosition mode that resets the encoder position. I believe you can call EnableControl again while in kPosition mode to reset the encoder without disabling the position control.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.
Lone Star Regional Troubleshooter
|