Go to Post So NASA is planning on blasting NERD deep into space? - Joe Matt [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 16-02-2005, 03:06
ten3brousone's Avatar
ten3brousone ten3brousone is offline
Kurayami o Samayou
None #1160
Team Role: Programmer
 
Join Date: Dec 2004
Location: San Marino
Posts: 32
ten3brousone is an unknown quantity at this point
Auton digital input

kind of confused by some of the things posted. they recommend switching diff auton codes by using if statements to check ditital_input1 (sorry dont remember variable right now) what exactly is digital input 1 hooked up to and/or what is being pressed to set digital input 1 to a value of 1?

also just a thought, can we use switches (as in light switches) and flip them on and off? (dont know too much about how the digital input side wiring goes)
thanks
__________________
-Rookie plz bear with me thanks!
  #2   Spotlight this post!  
Unread 16-02-2005, 03:10
NoodleKnight's Avatar
NoodleKnight NoodleKnight is offline
24 Hours of LeMons?
FRC #0100 (WHS&CHS Robotics)
Team Role: Alumni
 
Join Date: Aug 2004
Rookie Year: 2003
Location: Davis, CA
Posts: 320
NoodleKnight has much to be proud ofNoodleKnight has much to be proud ofNoodleKnight has much to be proud ofNoodleKnight has much to be proud ofNoodleKnight has much to be proud ofNoodleKnight has much to be proud ofNoodleKnight has much to be proud ofNoodleKnight has much to be proud ofNoodleKnight has much to be proud of
Send a message via AIM to NoodleKnight
Re: Auton digital input

digital input 1 is digital input 1 on the Robot Controller (I think, I'm not a programmer...). I believe the recommendation was that you could hook up a switch to a digital port on the RC, then during autonomous mode, have the code check the state of the digital switch and run the corresponding autonomous program.
__________________
WHS/CHS Robotics - Team 100 (2003-2006):
2006- Delphi's Driving Tommorow's Technology @ Davis | Imagery Award @ SVR | 2004- SVR Finalists (w/ 691 and 1280)| 2003- Delphi's Driving Tommorow's Technology @ Sac
  #3   Spotlight this post!  
Unread 16-02-2005, 03:30
ten3brousone's Avatar
ten3brousone ten3brousone is offline
Kurayami o Samayou
None #1160
Team Role: Programmer
 
Join Date: Dec 2004
Location: San Marino
Posts: 32
ten3brousone is an unknown quantity at this point
Re: Auton digital input

Quote:
Originally Posted by NoodleKnight
digital input 1 is digital input 1 on the Robot Controller (I think, I'm not a programmer...). I believe the recommendation was that you could hook up a switch to a digital port on the RC, then during autonomous mode, have the code check the state of the digital switch and run the corresponding autonomous program.

any idea how our electronics girl would wire the switch? i think its you ground one side and connect other to input? btw would it be possible to have a switch on the joystick controller board? (to use as a toggle switch)
__________________
-Rookie plz bear with me thanks!
  #4   Spotlight this post!  
Unread 16-02-2005, 08:55
Billfred's Avatar
Billfred Billfred is offline
...and you can't! teach! that!
FRC #5402 (Iron Kings); no team (AndyMark)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: The Land of the Kokomese, IN
Posts: 8,483
Billfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond repute
Re: Auton digital input

http://www.ifirobotics.com/docs/rc-r...01-31-2005.pdf

The manual is your friend here...page 10 deals with Digital I/O.

Cheers!
__________________
William "Billfred" Leverette - Gamecock/Jessica Boucher victim/Marketing & Sales Specialist at AndyMark

2004-2006: FRC 1293 (D5 Robotics) - Student, Mentor, Coach
2007-2009: FRC 1618 (Capital Robotics) - Mentor, Coach
2009-2013: FRC 2815 (Los Pollos Locos) - Mentor, Coach - Palmetto '09, Peachtree '11, Palmetto '11, Palmetto '12
2010: FRC 1398 (Keenan Robo-Raiders) - Mentor - Palmetto '10
2014-2016: FRC 4901 (Garnet Squadron) - Co-Founder and Head Bot Coach - Orlando '14, SCRIW '16
2017-: FRC 5402 (Iron Kings) - Mentor

93 events (more than will fit in a ChiefDelphi signature), 13 seasons, over 60,000 miles, and still on a mission from Bob.

Rule #1: Do not die. Rule #2: Be respectful. Rule #3: Be safe. Rule #4: Follow the handbook.
  #5   Spotlight this post!  
Unread 16-02-2005, 11:18
phillutz phillutz is offline
Registered User
FRC #0851 (The Froggers)
Team Role: Mentor
 
Join Date: Nov 2004
Rookie Year: 2004
Location: El Segundo,CA
Posts: 28
phillutz is on a distinguished road
Re: Auton digital input

1.Wire a switch to contact the outside 2 pins of the digital input XX.
2. Declare the digital pin as INPUT
3. In code read rc_dig_inXX where XX is the pin.


We have a series of 11 being used.
  #6   Spotlight this post!  
Unread 20-03-2005, 18:38
sirbleedsalot's Avatar
sirbleedsalot sirbleedsalot is offline
Registered User
FRC #0939
Team Role: Student
 
Join Date: Feb 2004
Location: New Effington South Dakota
Posts: 178
sirbleedsalot has a spectacular aura aboutsirbleedsalot has a spectacular aura aboutsirbleedsalot has a spectacular aura about
Re: Auton digital input

What method do you use to connect the switch to the ground and signal pins on the rc. The only thing I can think of is hacking up a bunch of pwm cables, but that seems like a waste of cable to me.
__________________
our web site
  #7   Spotlight this post!  
Unread 20-03-2005, 18:44
Joshua May's Avatar
Joshua May Joshua May is offline
Go Bears!
FRC #1110 (Binary Bulldogs)
Team Role: College Student
 
Join Date: Nov 2003
Rookie Year: 2003
Location: Berkeley, CA
Posts: 1,306
Joshua May has a reputation beyond reputeJoshua May has a reputation beyond reputeJoshua May has a reputation beyond reputeJoshua May has a reputation beyond reputeJoshua May has a reputation beyond reputeJoshua May has a reputation beyond reputeJoshua May has a reputation beyond reputeJoshua May has a reputation beyond reputeJoshua May has a reputation beyond reputeJoshua May has a reputation beyond reputeJoshua May has a reputation beyond repute
Send a message via AIM to Joshua May
Re: Auton digital input

Quote:
Originally Posted by sirbleedsalot
What method do you use to connect the switch to the ground and signal pins on the rc. The only thing I can think of is hacking up a bunch of pwm cables, but that seems like a waste of cable to me.
I believe somewhere in the FIRST documentation it says to hack a PWM cable for these. I guess it would be possible to take some small gauge wire and run that from the switches to the inputs, but you would have to make sure that the wires coming to the pins dont short in that small space, and im not sure of the legality. I would just recommend sticking with the PWM cables.
__________________
The FIRST Wiki - openFIRST - Ultimate Robot Challenge - URC Wiki
I currently have 50 GMail invites, PM or email me for one.
UC Berkeley Class of 2009

2005 Las Vegas Regional Autodesk Visualization Award
2005 Las Vegas Regional #8 Seeded Alliance with 988 and 1505
2006 Southern California Regional #15 seed
  #8   Spotlight this post!  
Unread 20-03-2005, 22:23
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: Auton digital input

Quote:
Originally Posted by sirbleedsalot
What method do you use to connect the switch to the ground and signal pins on the rc. The only thing I can think of is hacking up a bunch of pwm cables, but that seems like a waste of cable to me.
So buy the connectors and pins that are used in a pwm cable and use them instead of chopping a $5 cable in half. I bought a batch of them from the Hanson Hobbies RC eBay store. It works out to about 60 cents per connector, plus wire.
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
Dynamic Input/Output Changing Paolo Control System 6 23-09-2004 19:09
heres the code. y this not working omega Programming 16 31-03-2004 15:18
counting digital input CharlieWilken Programming 9 22-03-2004 19:56
How do u hook up the digital input to the sensor's wires Fares Technical Discussion 2 14-02-2003 16:41
Robot Digital Input Mike Norton Technical Discussion 5 16-01-2003 14:31


All times are GMT -5. The time now is 02:31.

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