|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Using driver station digital inputs
Can a team connect switches to the driver station digital inputs
to set which bit of autonomous code they want to be run during the autonomous period? Also, if this is kosher (and a rather a simple thing), does a team need permission to add a box with switches as this might qualify as "special electronics"? Thanks and best of luck in the competition! |
|
#2
|
||||
|
||||
|
Re: Using driver station digital inputs
Not sure about adding it to driver's station, but I know in the past we've put a switch on our digital i/o on our RC for autonomous to choose between certain settings.
|
|
#3
|
||||
|
||||
|
Re: Using driver station digital inputs
Technically this is possible. As for the rules, the only applicable rule I can find is G1.
Quote:
Assuming using the input during autonomous is legal, you won't need special permission to attach switches to the DS inputs. If for some reason you can't use the DS inputs you can use the inputs directly on the robot and set them while placing the robot. |
|
#4
|
||||
|
||||
|
Re: Using driver station digital inputs
Yes in the past we have also used the Digital inputs on the RC unit but I am under the impression that the digital inputs on the drivers station are available and activated during tjhe autonomous period which is more convenient for the drive rto set these up before the match begins...
Does anyone know if this option is available and permitted from the drivers station this year? |
|
#5
|
||||
|
||||
|
Re: Using driver station digital inputs
Does anyone know what type of switch to use? Also, how would you have a program decide between three different inputs?
|
|
#6
|
||||
|
||||
|
Re: Using driver station digital inputs
We are thinking of having four options, (actually 3 options and off) and I am considering using a rotary switch with 1k ohm pull down resistors where one position will be tied to nothing and the other positions sequentially tied to digital inputs 1, 2, & 3 with +5v connected to the common of the switch....
Then the programmer will only have to read the digital switches & AND them to 07h to determine which digital input we are selecting... incidently these 4 options can be handled with only 2 digital inputs and 3 SPST switches (with pulldowns) and the commons tied to +5v or 3 SPDT switch commons (without pulldowns and one of the wipers tied to +5V & the other to Gnd) then the programmer only needs to read the Digital inputs & AND the read value with 03h to determine which of the 4 options are desired... The reason for the pulldowns is that I read that the driver station does not have pull ups or pull downs on the digital input lines which can make for some unpredictable results if they are not tied to one rail or the other... Clear as mud, right? |
|
#7
|
|||
|
|||
|
Re: Using driver station digital inputs
The digital and analog I/O on the driver station are for the purpose of creating custom UIs for the robot. It is true that there are no pull-ups on the digital inputs, so you have to explicitly do that yourself or you'll get unpredictable results. You can also do tricks like use a set of resistors and a switch to use one of the analog inputs as many digital (switch) inputs if you're running out of real digital inputs.
Be aware that in the future it is possible that you will not be able to read the driver station values during the autonomous period. So plan on writing the code to store values in variables during the disabled period before autonomous then use them in the autonomous period. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Flashing Driver Station Digital Input | MacGyver1718 | FRC Control System | 3 | 15-01-2009 19:22 |
| Interrupt on driver station digital input | Nameless | Programming | 9 | 04-12-2008 16:55 |
| Using Analog Inputs as Digital (on the OI) | Guy Davidson | Control System | 16 | 10-03-2008 17:17 |
| digital inputs: some bad? | Trav-O | Electrical | 3 | 18-02-2008 23:29 |
| Analog vs Digital inputs? | f22flyboy | Programming | 8 | 08-11-2002 22:18 |