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

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.

PID

Do you have any code?

this is the code

Can we see a snapshot of your Begin.vi and Telop.vi please

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?

Yes using breakout board

PID Values

Begin

Teleop

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.

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?

It should be assign to a button with the number of rotations that you would like the motor to turn.

Like so??

Unless your resetting your PID in telop, this should be all you need to control that motor





Nope still nothing