|
Re: Talon SRX magnetic encoder issues
It sounds like you have a cabling issue between the magencoder and Talon.
You can confirm this by grabbing the self-test before and after reproducing the problem and observing that the absolute position (pulse width) and relative position (quadrature) disagree. That's one of the benefits of the CTRE magnetic encoder; you have two references that rely on different physical wires.
Most likely the ribbon cable needs to be replaced, or if you are using a breakout inspect the solder contacts/wiring.
Are you close or exceeding the peak rated RPM for CTREMagEnc_Absolute? If so then select CTREMagEnc_Relative and setposition() to what the absolute reading reports. See github examples/Talon SRX Software Reference manual for more info and peak RPM specs.
|