|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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 |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
Re: Auton digital input
Quote:
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) |
|
#4
|
|||||
|
|||||
|
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! |
|
#5
|
|||
|
|||
|
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
|
||||
|
||||
|
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.
|
|
#7
|
|||||
|
|||||
|
Re: Auton digital input
Quote:
|
|
#8
|
|||||
|
|||||
|
Re: Auton digital input
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |