View Single Post
  #11   Spotlight this post!  
Unread 10-02-2015, 18:01
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: 521
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: Using Encoders with TalonSRX

If you set the control mode to Speed, then set() will take the target speed you want. The units are sensor-dependent and better explained in section 17, but it's basically the change in sensor value per 100ms. You can also cheat by using the Self-Test to see what your "Sensor Velocity" reads while driving the motor.

Examples on how to change modes is in Section 3.6. (Section 3.6.3 for Java).

Also after you changed the mode, the Talon SRX will not drive motors until the next call to set(). See Section 16.12 for more info.
Reply With Quote