![]() |
Talon SRX position control
1 Attachment(s)
I am trying to create pid code using the built in code on the talon srx. I'm programing in labview. The question I have is that when you set your setpoint that the code will try to go to do you place the setpoint in the motor output or the sync group/parameters slot below it in the motor set output vi. I also need to find out how to set the motor output range or if it is even needed. :confused:
|
Re: Talon SRX position control
Quote:
Check out the Talon SRX Software Reference Manual to get an idea about what is necessary to leverage the closed-loop feature. It's more then calling the motor-set VI. You have to select your sensor (and may need to software-reverse it), select gains, select the control mode (position or velocity), and then you can set the target and watch it servo. |
Re: Talon SRX position control
Quote:
|
Re: Talon SRX position control
It sounds like you are asking about selecting the various settings (control mode, PIDF values, set point) in Begin vs in the various loops (teleop/auton).
Either is sufficient and you have a doubt just grab the Self-Test (section 2.4 - Talon SRX software reference manual) and confirm the mode, gains, SelectedProfile, sensor position, closedLoopEr, and set point). You can calculate the set point by (ClosedLoopErr + SensorPos[orVelocity] ). Obviously you will want to MOTOR SET OUT periodically since you will change your set point in your robot application. Most of these settings are not applied until you enable your robot (see section 16.2) and will not report in the webdash, so enable the robot before checking. |
| All times are GMT -5. The time now is 01:42. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi