Thread: CAN Talon PID
View Single Post
  #1   Spotlight this post!  
Unread 20-01-2017, 10:42
CurlyFries CurlyFries is offline
Registered User
AKA: Troy Martin
FRC #2512 (Duluth East Daredevils)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2014
Location: Duluth, MN
Posts: 22
CurlyFries is an unknown quantity at this point
CAN Talon PID

I'm getting some weird results from my testing of the CAN Talon SRX built-in pid loop. Our setup has a ctre magnetic encoder plugged directly into the CAN Talon. I couldn't find a whole lot of documentation, but I did find some java examples using the links at the ctre website. We are using c++, so I did my best to "translate" some of the documentation into a c++ sample robot program. The functions are named the same and I don't expect them to be all that different between languages. My main problem is that changing the pid(f) values I give the pid loop actually changes how fast the motor's resting velocity is regardless of what I set the loop to. The speed seems to increase as I increase any of the four values. This obviously is not how pid loops are supposed to work. Any insight would be greatly appreciated!
Attached Files
File Type: cpp Robot.cpp (2.4 KB, 36 views)
Reply With Quote