|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
![]() |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
Re: Critical Talon Srx help needed
Quote:
|
|
#4
|
||||
|
||||
|
Re: Critical Talon Srx help needed
|
|
#5
|
|||
|
|||
|
Re: Critical Talon Srx help needed
|
|
#6
|
|||
|
|||
|
Re: Critical Talon Srx help needed
Can we see a snapshot of your Begin.vi and Telop.vi please
|
|
#7
|
||||
|
||||
|
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? |
|
#8
|
|||
|
|||
|
Re: Critical Talon Srx help needed
Yes using breakout board
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 Last edited by Team5860-Alex : 17-02-2016 at 22:34. |
|
#9
|
||||
|
||||
|
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. |
|
#10
|
|||
|
|||
|
Re: Critical Talon Srx help needed
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?
|
|
#11
|
|||
|
|||
|
Re: Critical Talon Srx help needed
Quote:
|
|
#12
|
|||
|
|||
|
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.
Last edited by Matt-T-FRC : 17-02-2016 at 23:02. |
|
#13
|
|||
|
|||
|
Re: Critical Talon Srx help needed
Quote:
https://www.dropbox.com/s/81gj2e6wt4...12%29.png?dl=0 |
|
#14
|
|||
|
|||
|
Re: Critical Talon Srx help needed
Unless your resetting your PID in telop, this should be all you need to control that motor
|
|
#15
|
|||
|
|||
|
Re: Critical Talon Srx help needed
Nope still nothing
Last edited by Team5860-Alex : 18-02-2016 at 14:26. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|