![]() |
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 |
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. |
Re: Reading switches during Autonomous
Thanks! More last minute testing I guess :)
Sean Quote:
|
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. |
| All times are GMT -5. The time now is 01:36. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi