Go to Post For me, this is the most powerful message of FIRST, that people can come together and work together to achieve so much, and leave old rivalries, grudges, and hard feelings behind. When people talk about culture change, this is what I hope for. - Aren Siekmeier [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 20-03-2013, 16:58
burde1jb's Avatar
burde1jb burde1jb is offline
Registered User
FRC #4327 (Q Branch)
Team Role: Coach
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Battle Creek, MI
Posts: 46
burde1jb will become famous soon enough
Unhappy Quick Teleop Question

Oh wise people of Chief Delphi , Team 4327 comes to you with a request. We are struggling to understand why a function known as the "Indexer" on our robot is not working. Everything electrical is okay (no loose wires, bad spike relay, etc.), but when we command the robot to index, the robot does not.

So can you members wiser than we look at the code specifically to the "Indexer" and pitch ideas as to why it may not be functioning? Any responses are appreciated. Thanks!

John Burdette
Mentor Team 4327
Attached Thumbnails
Click image for larger version

Name:	IndexerQuestion.JPG
Views:	91
Size:	46.2 KB
ID:	14401  
Reply With Quote
  #2   Spotlight this post!  
Unread 20-03-2013, 17:46
ykarkason ykarkason is offline
21st Century Schizoid Man
FRC #3316 (D-Bug)
Team Role: CAD
 
Join Date: Dec 2012
Rookie Year: 2013
Location: Israel
Posts: 63
ykarkason will become famous soon enoughykarkason will become famous soon enough
Re: Quick Teleop Question

That's a good question.
From your code it seems like the indexer is spike relay asked to move forward at the press of a button.
Is that it?
Check if the spelling is the same in the Teleop and in the Begin VIs, it's case-sensitive.


By the way, maybe it's too late but I'd suggest adding a control-loop(such as an encoder and a PID loop for a set RPM) for your shooter for more consistency. The way it works it is - as the battery weakens the shooter will spin slower, with a control-loop it will not depend on the battery.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-03-2013, 19:55
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Quick Teleop Question

There's a little red dot on the value input to the Relay Set function. That means that what's wired to it is not what it expects. I can't tell from a static picture, but it's likely that you managed to copy the "Forward" and "Off" constants from a solenoid instead of a Relay function. I'd delete them along with the Select they're connected to, then recreate them (right-click the Relay Set input terminal and choose Create -> Constant), if only to get rid of the coercion dot.

But I think the actual values underlying the different constant types are compatible, so that probably shouldn't actually cause things not to work.

What does happen when you click Button 4 of the controller? Do you see its indicator light up on the Dashboard? Does the Digital Sidecar green LED associated with the relay light up? Does the Spike's LED change from yellow/orange to green? Have you tried running Robot Main and probing the values in Teleop to see whether they do what you expect?
Reply With Quote
  #4   Spotlight this post!  
Unread 20-03-2013, 20:54
burde1jb's Avatar
burde1jb burde1jb is offline
Registered User
FRC #4327 (Q Branch)
Team Role: Coach
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Battle Creek, MI
Posts: 46
burde1jb will become famous soon enough
Re: Quick Teleop Question

First, thank you for the quick responses so thoroughly investigating the issue!

To ykarkason, yes, at the push of a button, the motor is to run forward. I will have my captain of programming look into the Begin VIs for any spelling errors.

To Alan, our robot is since bagged for our event starting tomorrow evening so I can tell you more then. All I can say for certain right now is that when we press the appropriate button, the spike relay light goes from "orange" to nothing. No light. We looked into this and believe it means we are telling the spike relay to go both forward and reverse at the same time.

So we were curious about the code to see if that was what we were unintentionally doing.
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 12:11.

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