View Single Post
  #2   Spotlight this post!  
Unread 29-01-2015, 22:16
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: 522
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: Talon SRX PID feedback LabVIEW example

Section 18 is not a C++ code example. It is the verbatim PIDF implementation in the Talon firmware. The Talon firmware is not open-source, but I felt teams would still benefit to see how the PIDF is implemented in the Talon firmware to best understand how to leverage it.

Each section in the software ref manual has an LV example for individual parameters (like gain setting, selecting feedback device, flipping sensor direction, selecting the mode). Use a pdf viewer that can show you the bookmarks, and expand the bookmarks to quickly navigate thru the LabVIEW examples.

So for example Section 12.1.1 has the LV example for gain setting, an important part of closed-looping.

Bottom of section 11.1 has a list of signals that you might be interested...
Quote:
Beyond the Motor Control Profile Parameters, closed-loop modes requires selecting
-which control mode (position or velocity)
-which feedback sensor to use
-if the feedback sensor should be reversed
-if the closed-loop output should be reversed
-what is the latest target or set point
-the global ramp rate (if specified)
-which Motor Control Profile Slot to use.
Reply With Quote