Go to Post If you see Navy ships in port, you're going to be fine. If you see ships pulling out, or no ships at all, go East. Fast. - Matt Howard [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-02-2013, 15:48
Doctor Gandalf's Avatar
Doctor Gandalf Doctor Gandalf is offline
Registered User
AKA: Kellan
FRC #0617 (The Enginerds)
Team Role: Alumni
 
Join Date: Feb 2013
Rookie Year: 2011
Location: Virginia
Posts: 8
Doctor Gandalf is an unknown quantity at this point
Question [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!
Reply With Quote
  #2   Spotlight this post!  
Unread 26-02-2013, 17:07
aklego aklego is offline
Registered User
FTC #3595 (Schrödinger's Hat)
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2004
Location: Alaska
Posts: 89
aklego is just really niceaklego is just really niceaklego is just really niceaklego is just really nice
Re: [FTC]: [FTC] Labview Servo Malfunction

Can you post your code?
__________________
let tau = 2pi
Reply With Quote
  #3   Spotlight this post!  
Unread 26-02-2013, 21:03
Doctor Gandalf's Avatar
Doctor Gandalf Doctor Gandalf is offline
Registered User
AKA: Kellan
FRC #0617 (The Enginerds)
Team Role: Alumni
 
Join Date: Feb 2013
Rookie Year: 2011
Location: Virginia
Posts: 8
Doctor Gandalf is an unknown quantity at this point
Smile Re: [FTC]: [FTC] Labview Servo Malfunction

I'd love to, but I'm not certain how to. Would you mind explaining for me? Thanks!
Reply With Quote
  #4   Spotlight this post!  
Unread 27-02-2013, 14:09
aklego aklego is offline
Registered User
FTC #3595 (Schrödinger's Hat)
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2004
Location: Alaska
Posts: 89
aklego is just really niceaklego is just really niceaklego is just really niceaklego is just really nice
Re: [FTC]: [FTC] Labview Servo Malfunction

Quote:
Originally Posted by Doctor Gandalf View Post
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
__________________
let tau = 2pi
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 17:12.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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