![]() |
Resetting Jaguar Encoder Count
We are trying to reset the internal encoder count of a Jaguar to 0. This is supposedly possible to do using the enableControl(double encoderInitialPosition) function.
The Jag is generally being run in %Vbus mode. From what we understand, it's necessary to change the control mode to Position in order for the passed double to have any effect. This is supported by looking at the source code, which only packs and sends the encoderInitialPosition if the m_controlMode instance variable is set to Position. (CANJaguar.class) We found an example of this being done in C++ Code:
CANJaguar::ControlMode oldMode = GetControlMode();Code:
jaguar.setPositionMode(CANJaguar.kQuadEncoder, encoderCounts, 0, 0, 0);Code:
jaguar.set(0);Thoughts? |
| All times are GMT -5. The time now is 20:09. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi