View Single Post
  #5   Spotlight this post!  
Unread 13-02-2010, 16:22
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Programming Toggle Swiches

Quote:
Originally Posted by ChrisArmour View Post
Thanks Mike I think we managed to get that code made but I don't think it will quite work with the system we have.

We will have three switches with on/ off positions that will controll three different autonomous modes. The problem is that we are not sure how to connect the switches to the code. We need the code to recieve the position of all the switches form DIO 3-5. We tried to use the select but said that we were using the wrong type of input for "S", but it is the same concept. If button one is on, and others off, then run autonomous for feild section one. If button two on, and others off, then run autonomous for feild section two. If button 3 on and others off, then run autonomous for reild section 3.

Could anyone give me some tips, we are kind off hitting a wall.
Chris,

I really think that converting to a number and then feedng a switch is far easier and less confusing to do.

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
Reply With Quote