View Single Post
  #2   Spotlight this post!  
Unread 10-02-2015, 19:13
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: 523
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: Using Encoders with TalonSRX

Quote:
Originally Posted by Chaube97 View Post
I figured out that the set() values in speed mode go from 0 to 1000. Everything works now. Thank you so much for your help!
Well...wait....it sets the target speed in pos per 100ms, which can be negative (reverse) and can be larger than 1000.

So do you see how in section 17.1 (Talon SRX software reference manual) the example math for a CPR=360 quadrature encoder calculates a speed of 28800 for 20 rotations per second (or RPM=1200)? So set(28800) would servo a velocity of 1200RPM in the positive direction IF using a quad encoder (that's CPR=360).

Make sense?
Reply With Quote