Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   FIRST Tech Challenge (http://www.chiefdelphi.com/forums/forumdisplay.php?f=146)
-   -   [FTC]: [FTC] Labview Servo Malfunction (http://www.chiefdelphi.com/forums/showthread.php?t=114397)

Doctor Gandalf 26-02-2013 15:48

[FTC]: [FTC] Labview Servo Malfunction
 
Hi guys,

I'm trying to program a new arm for my FTC team (3116) to use at states. It uses three servos (one at the bottom, one in the middle, and one as a wrist), which I set up to individual buttons; each has two (up and down).
When I tested the program, it repeatedly switches up which servo goes to which button.

I tried to troubleshoot, first by replacing the NXT (three different ones with the same problem) and the servo controller (two different ones, no fix). Then, I tried to use a new program. Rather than making two case structures nestled in each other (like the auto generated code), I unpacked the controller button cluster, sending each button to an individual if else test.

This worked better, but it wouldn't store the value of the buttons (meaning the servos would constantly move between the positions) - and the NXT wouldn't let me make a Boolean memory unit to store the data. It is important to note that the servos didn't respond to the wrong signal at that point.

Is there anything I missed? It seems to be a problem in the coding, but I'm not sure what needs to be fixed. Is there a better way to program the servos than what I tried?

Thanks for the help!

aklego 26-02-2013 17:07

Re: [FTC]: [FTC] Labview Servo Malfunction
 
Can you post your code?

Doctor Gandalf 26-02-2013 21:03

Re: [FTC]: [FTC] Labview Servo Malfunction
 
I'd love to, but I'm not certain how to. Would you mind explaining for me? Thanks!

aklego 27-02-2013 14:09

Re: [FTC]: [FTC] Labview Servo Malfunction
 
Quote:

Originally Posted by Doctor Gandalf (Post 1240872)
I'd love to, but I'm not certain how to. Would you mind explaining for me? Thanks!

Probably the easiest way is to use the share button on the Robot Project Center. This will zip up your entire project which you can then upload.

Alternatively, you can select the code in question and choose "create .vi snippet from selection" from the edit menu. Details are here: http://www.ni.com/white-paper/9330/en


All times are GMT -5. The time now is 18:23.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi