Log in

View Full Version : Problems using the labview templates in ftc


tjakowenko
27-02-2012, 09:43
We have several descrete vi's to move 180 degree servos. Everything works fine when a descrete function is mapped to a game controller button. However when the code is placed in the respective parts of the template by "generating code" when a button is pressed to move one motor other motors move in addition.

We can't figure it out. Any insight would be very welcome.

Thank you in advance.

~TJ

Alan Anderson
27-02-2012, 10:34
Showing us your code would help us help you figure out what's going on.

tjakowenko
27-02-2012, 10:43
Attached is our teleoptank.vi. thank you for your quick response I'm taking the day off of work to try to resolve this issue

Alan Anderson
27-02-2012, 15:01
I don't know FTC programming, so I don't know how much help I'm going to be. I hope someone else will be able to chime in with useful advice.

What I see from this program is that buttons 1, 2, and 4 on Controller 2 will all cause servos 1 and 2 to change position. Buttons 5 and 7 on Controller 1 drive in different directions at power 75. POV up on Controller 2 zeros servo 3.

If this isn't what you want to happen, something isn't set up right.

tjakowenko
27-02-2012, 20:58
Thank you for the feedback. Your interpretation is correct. Unfortunately, servo 3 moves when servo 1 and 2 are being commanded.
~TJ