|
Re: Using Custom Inputs on the Controller Board
Quote:
|
Originally Posted by schenkin
Hey
I want to use custon imports on the controller board to choose which color the robot should look for. I plan on using 2 switches and using the four possible possitions as four possible options (Yellow, Red, Green, Off)
How do I call on these inputs in the code. I figured I would us one of the joystick inputs and use my owm cable, but how do I tell the code where to pull the info from?
--Sam
--Team 486
--Positronic Panthers
|
I suggest that you install switches for use during autonomous mode on the robot and wire them into the digital inputs on the RC following the directions in the RC reference manual. You will find examples of how to read digital inputs in the default code and in the RC programming guide.
__________________
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...
|