View Single Post
  #5   Spotlight this post!  
Unread 03-02-2015, 21:15
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 522
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
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.
Reply With Quote