|
Re: Encoders with CANTalons
Well getAnalogInputPosition() will return ~100 since you likely have nothing connected to the analog input. Please read section 16.21 in the Talon SRX Software Reference Manual.
If GetEncoder() is returning zero then you should check the self-test to see what's up (Section 2.4 in the Talon SRX Software Reference Manual).
getSpeed/getPosition requires you to select which type of feedback you are using. Please see Section 7 and Section 5.3 for the java examples in the Talon SRX Software Reference Manual.
|