Go to Post FIRST is the only sort of competition that I've seen where somebody can win and the opponents can be genuinely happy for them. - RiceRobotica [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 19-02-2006, 13:42
TimeOut's Avatar
TimeOut TimeOut is offline
Registered User
AKA: Sean Kelly
FRC #0499 (The Toltechs)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: San Antonio, TX
Posts: 50
TimeOut is on a distinguished road
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   Spotlight this post!  
Unread 19-02-2006, 14:03
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
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   Spotlight this post!  
Unread 19-02-2006, 14:04
TimeOut's Avatar
TimeOut TimeOut is offline
Registered User
AKA: Sean Kelly
FRC #0499 (The Toltechs)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: San Antonio, TX
Posts: 50
TimeOut is on a distinguished road
Re: Reading switches during Autonomous

Thanks! More last minute testing I guess

Sean

Quote:
Originally Posted by KenWittlief
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.
  #4   Spotlight this post!  
Unread 19-02-2006, 16:23
CarpeDiem CarpeDiem is offline
Registered User
FRC #0135
 
Join Date: Dec 2005
Location: Indiana
Posts: 37
CarpeDiem is an unknown quantity at this point
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.
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
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


All times are GMT -5. The time now is 01:36.

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