View Single Post
  #3   Spotlight this post!  
Unread 02-02-2017, 14:01
thejerishbrown's Avatar
thejerishbrown thejerishbrown is offline
Registered User
FRC #0190 (Gompei and the Herd)
Team Role: Mentor
 
Join Date: Apr 2015
Rookie Year: 2013
Location: United States
Posts: 5
thejerishbrown is an unknown quantity at this point
Re: Setting PID constants in code for TalonSRX Velocity Control

Quote:
Originally Posted by ozrien View Post
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.
This was the problem. Thanks!
Reply With Quote