![]() |
Critical Talon Srx help needed
This is our rookie year and programming is off to a great start however we want to use encoders to do a series of commands. We have tried our best efforts, referred to the software manual and still cant get it to work. We do have an encoder read out and can find/reset the encoder position, however in teleop we cant get the motors to move at all. We are using digital quadrature encoders on the versa planetary gearboxes right to the CAN talon srx's. If we could get some code or code pictures to help out that would be much appreciated. the examples werent much success either:(
|
Re: Critical Talon Srx help needed
Are you using PID control or percent control?
Here's the Talon SRX software reference manual. There is some example code in there for whatever you are doing. https://www.ctr-electronics.com/Talo...e%20Manual.pdf |
Re: Critical Talon Srx help needed
Quote:
|
Re: Critical Talon Srx help needed
Quote:
|
Re: Critical Talon Srx help needed
|
Re: Critical Talon Srx help needed
Can we see a snapshot of your Begin.vi and Telop.vi please
|
Re: Critical Talon Srx help needed
I'm not very familiar with LabVIEW, but I'll try to help as much as I can. What are the PID values you are using with the Talon? You can try increasing P until you see the motor move (safely). I've found that the Talon self-test is pretty helpful for checking problems.
You have the quad encoder hooked up to the talon via the breakout board, yes? |
Re: Critical Talon Srx help needed
Quote:
PID Values https://www.dropbox.com/s/dvhe5a325z...10%29.png?dl=0 Begin https://www.dropbox.com/s/wzamoeuelc...88%29.png?dl=0 Teleop https://www.dropbox.com/s/1o918lpwrf...89%29.png?dl=0 |
Re: Critical Talon Srx help needed
Those are some seriously huge PID values. P should be between 0 and 1 in most cases. I would start tuning with just a P value and no I/D, which you can add later if you need the stabilization.
The Talon SRX software reference manual has some good tips on PID tuning. You can use the self-test button to determine error, and calculate your initial P value based on that. |
Re: Critical Talon Srx help needed
1 Attachment(s)
Alright, that's a great start. Your Begin.vi you need everything to the right of the loop in your Telop.vi minus the driver station start communication. In your Telop.vi, you need everything inside the while loop except for the timer. Besides that, have you attempted to run this program at all on your robot?
|
Re: Critical Talon Srx help needed
Quote:
|
Re: Critical Talon Srx help needed
It should be assign to a button with the number of rotations that you would like the motor to turn.
|
Re: Critical Talon Srx help needed
Quote:
https://www.dropbox.com/s/81gj2e6wt4...12%29.png?dl=0 |
Re: Critical Talon Srx help needed
1 Attachment(s)
Unless your resetting your PID in telop, this should be all you need to control that motor
|
Re: Critical Talon Srx help needed
Quote:
|
| All times are GMT -5. The time now is 00:38. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi