Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Critical Talon Srx help needed (http://www.chiefdelphi.com/forums/showthread.php?t=144059)

Team5860-Alex 17-02-2016 21:17

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:(

nickbrickmaster 17-02-2016 21:19

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

Team5860-Alex 17-02-2016 21:34

Re: Critical Talon Srx help needed
 
Quote:

Originally Posted by nickbrickmaster (Post 1541969)
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

PID

TimTheGreat 17-02-2016 21:35

Re: Critical Talon Srx help needed
 
Quote:

Originally Posted by Team5860-Alex (Post 1541976)
PID

Do you have any code?

Team5860-Alex 17-02-2016 21:49

Re: Critical Talon Srx help needed
 
this is the code

https://www.dropbox.com/s/aid95e1i31...87%29.png?dl=0

Matt-T-FRC 17-02-2016 22:24

Re: Critical Talon Srx help needed
 
Can we see a snapshot of your Begin.vi and Telop.vi please

nickbrickmaster 17-02-2016 22:27

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?

Team5860-Alex 17-02-2016 22:29

Re: Critical Talon Srx help needed
 
Quote:

Originally Posted by Matt-T-FRC (Post 1542004)
Can we see a snapshot of your Begin.vi and Telop.vi please

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

nickbrickmaster 17-02-2016 22:41

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.

Matt-T-FRC 17-02-2016 22:43

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?

Team5860-Alex 17-02-2016 22:53

Re: Critical Talon Srx help needed
 
Quote:

Originally Posted by Matt-T-FRC (Post 1542016)
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?

Yes we ran it but nothing happened, is it an automatic process or should we assign this to a button?

Matt-T-FRC 17-02-2016 22:59

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.

Team5860-Alex 17-02-2016 23:10

Re: Critical Talon Srx help needed
 
Quote:

Originally Posted by Matt-T-FRC (Post 1542027)
It should be assign to a button with the number of rotations that you would like the motor to turn.

Like so??
https://www.dropbox.com/s/81gj2e6wt4...12%29.png?dl=0

Matt-T-FRC 17-02-2016 23:35

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

Team5860-Alex 17-02-2016 23:46

Re: Critical Talon Srx help needed
 
Quote:

Originally Posted by Matt-T-FRC (Post 1542047)
Unless your resetting your PID in telop, this should be all you need to control that motor

Nope still nothing


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