View Single Post
  #19   Spotlight this post!  
Unread 19-01-2017, 10:49
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,748
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: How is velocity control supposed to work on the Talon SRX?

Quote:
Originally Posted by ajlapp View Post
Does using this strategy prevent the controller from requesting max duty cycle when starting from zero?

What I'm currently seeing is my FF go to the requested value and stay there until near the target speed....the P term does not seem to boost the duty cycle request to max at startup as I initially expected.
It depends on your P and D terms and ramp rates. P works off the error in velocity, so is P is small, P*error might not be large enough to get 100% throttle. D works from change in error per cycle. It typically works against P. If your error is decreasing rapidly, D*err/time is negative, which reduces your throttle command from what P + FF would set. Too big a D term could limit how fast you come up to speed because of this. Finally, voltage ramp rate and closed loop ramp rate limit how fast the output can change. Your ramp rate has to be faster than the physical acceleration of the system, or by the time 100% output is allowed by the ramping, the error is too low for 100% output to be required.

What are your FF P and D terms, and target speed in encoder counts per second? (srx mag encoder is 4096 counts per rev, other encoders are 4 x CPR counts per rev)
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter

Last edited by Kevin Sevcik : 19-01-2017 at 10:51.
Reply With Quote