|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Reading switches during Autonomous
We plan on setting the autonomous mode from the operator interface. My question is can the Operator Interface be queried (specfiically P3/4 Switch definitions) during the autonomous mode. Obviously, these switches would be set prior to the start of the match and would initialize to the state they are positioned during robot initialization.
Thanks! D. Sean Kelly Team #499 - Programming Mentor |
|
#2
|
||||
|
||||
|
Re: Reading switches during Autonomous
Sort of.
when the robot is disabled it still reads all the inputs (RC and OI), only the outputs are blocked. When Auton mode begins the robot will not be able to read any inputs from the OI, but if you write your code to remember what the switch settings were while the robot was disabled, you can use those values during auton mode. |
|
#3
|
||||
|
||||
|
Re: Reading switches during Autonomous
Thanks! More last minute testing I guess
![]() Sean Quote:
|
|
#4
|
|||
|
|||
|
Re: Reading switches during Autonomous
If i put switches on straight to the RC i need ot know is a digital only 0 or 1 with a switch. what i am trying to say if i have a switch in digital 1 and two would i say
if (rc_dig_in01){ rc_dig_in02=0; } or what would i use to tell it i dont want digital 2 on. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A Warning to Human Players During Autonomous | The Lucas | General Forum | 21 | 07-04-2005 02:29 |
| Setting Autonomous Settings from OI | Tom Saxton | Programming | 15 | 27-03-2005 11:45 |
| Despite what IFI says, you can configure autonomous from OI... | TedP | Programming | 19 | 31-03-2004 10:09 |
| autonomous mode problem on field | Chris_C | Programming | 17 | 26-03-2003 19:11 |