View Single Post
  #2   Spotlight this post!  
Unread 02-02-2017, 13:42
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: 559
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: Setting PID constants in code for TalonSRX Velocity Control

I just noticed...
Code:
 _talon.configPeakOutputVoltage(+12.0f, 0.0f);
... which caps the output to forward only. If you want to spin reverse you should do...
Code:
_talon.configPeakOutputVoltage(+12.0f, -12.0f);
... which allows full motor output in both directions.

I think the peak outputs get reset to the defaults when you save in web-config.
Reply With Quote