Go to Post Let's Just say i am the one that gives Firefighters, paramedics, and law enforcement a job - Tytus Gerrish [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-08-2006, 19:51
Rob2713g's Avatar
Rob2713g Rob2713g is offline
Registered User
FRC #0540 (Screaming Eagles)
 
Join Date: Apr 2006
Rookie Year: 2004
Location: VA
Posts: 143
Rob2713g has a spectacular aura aboutRob2713g has a spectacular aura aboutRob2713g has a spectacular aura about
Push Button System

Hey,

My team is trying to create a push button system where we have 5 buttons, each worth a different amount. We are having trouble writing the program because we don't know how to make it so that 2 buttons can be pushed at the same time. We've heard suggestion such as interrupts and getting a microcontroller for each button. Thanks in advance and I'll be sure to post our results.
  #2   Spotlight this post!  
Unread 08-08-2006, 20:17
thegathering's Avatar
thegathering thegathering is offline
Angry Troll Lurking in the MUD
AKA: Ben
FRC #1885 (Robocats)
Team Role: Programmer
 
Join Date: Jul 2006
Rookie Year: 2006
Location: Look around you. What do you see?
Posts: 333
thegathering is a splendid one to beholdthegathering is a splendid one to beholdthegathering is a splendid one to beholdthegathering is a splendid one to beholdthegathering is a splendid one to beholdthegathering is a splendid one to behold
Send a message via AIM to thegathering
Re: Push Button System

Why can't you just check if one button is on and the other button is on by using && in an if check? We were able to do that with our joystick... is there something different with your controller?
__________________

*2006 Champion Rookie All Star Award.
*2 x 2006 Regional Rookie All Star Awards.
  #3   Spotlight this post!  
Unread 08-08-2006, 20:20
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,031
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: Push Button System

Quote:
Originally Posted by Rob2713g
Hey,

My team is trying to create a push button system where we have 5 buttons, each worth a different amount. We are having trouble writing the program because we don't know how to make it so that 2 buttons can be pushed at the same time. We've heard suggestion such as interrupts and getting a microcontroller for each button. Thanks in advance and I'll be sure to post our results.
Can you give a more detailed explaination of what you are trying to do? Are the five buttons Operator buttons with your joysticks, or are they on the robot? What will these buttons be doing in your code (driving a motor, etc)?
  #4   Spotlight this post!  
Unread 08-08-2006, 20:22
Alexa Stott's Avatar
Alexa Stott Alexa Stott is offline
All I do is twin.
AKA: elixir
FRC #0025 (Raider Robotix)
Team Role: College Student
 
Join Date: Oct 2005
Rookie Year: 2006
Location: No. Bruns., NJ/College Park, MD
Posts: 781
Alexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond repute
Send a message via AIM to Alexa Stott
Re: Push Button System

Quote:
Originally Posted by Greg Marra
Can you give a more detailed explaination of what you are trying to do? Are the five buttons Operator buttons with your joysticks, or are they on the robot? What will these buttons be doing in your code (driving a motor, etc)?
Yep, makes a big difference.

Also, are they all connected into the same port? That also makes a difference. Again, please give some more details about what you want to do with these buttons.
__________________
|Email:alexastott[at]gmail.com|Facebook|@zelixir|Google+|
[University of Maryland Computer Science, Psychology]
[Brunswick Eruption]
  #5   Spotlight this post!  
Unread 08-08-2006, 20:38
Rob2713g's Avatar
Rob2713g Rob2713g is offline
Registered User
FRC #0540 (Screaming Eagles)
 
Join Date: Apr 2006
Rookie Year: 2004
Location: VA
Posts: 143
Rob2713g has a spectacular aura aboutRob2713g has a spectacular aura aboutRob2713g has a spectacular aura about
Re: Push Button System

Hey,

We are trying to make a scoring system. So we will have approximately 10 buttons. We want to have when button A is pressed add 1 point, when button B add 3 points, etc. We then want to have the total variable somehow go into the computer so we can display the score.
Someone just gave me the idea of using the LPT (printer port) and have a button for each wire and use visual basic to due the reading. But I'm rather new to programming and would appreciate any help.

Thanks!

I'll be sure to post results and probably a white paper so everyone else can use the same system if they like it.
  #6   Spotlight this post!  
Unread 08-08-2006, 21:20
Rob2713g's Avatar
Rob2713g Rob2713g is offline
Registered User
FRC #0540 (Screaming Eagles)
 
Join Date: Apr 2006
Rookie Year: 2004
Location: VA
Posts: 143
Rob2713g has a spectacular aura aboutRob2713g has a spectacular aura aboutRob2713g has a spectacular aura about
Re: Push Button System

Hey,
I just figured out how to do it with the help of my parents (figures, we work on it for a while, I post it on ChiefDelphi and then we realize how to do, and it is the first way we tried).
But I'm still unsure as to once I have the variable, to print out to the computer in a format (such as a file) that I can use in another program. Such as A=56 B=72.
Anyone know how the guys who made the official scoring system did it?

Thanks a lot!
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
pic: How we push Cody Carey Extra Discussion 4 14-03-2006 23:09
push-button switch on robot Conan Electrical 4 10-02-2006 22:03
Push Cart Stereo WSDragonAlex General Forum 24 31-03-2004 01:07
Shipping Push Back SwordSerenity Chit-Chat 1 19-02-2003 13:37
Clues for Push Dante Sparda Chit-Chat 3 19-09-2002 22:57


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

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