View Single Post
  #4   Spotlight this post!  
Unread 17-01-2005, 20:55
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: Rookie programmer in need of help.

Quote:
Originally Posted by kshot
Well, I wanted the button to be placed in front of the robot, then as the driver pushes the robot forward, if the button is pressed (vision tetra is being pushed against the robot), then the program would then execute it's next stage.
See page 11 of 2004-programming-reference-guide-12-apr-2004.pdf (at the bottom of Perform Operations Example)for an example of how to reference a digital input. In this case, they use rc_dig_in01 to decide what to do (will the roller stop or go?).

You would need to connect your switch to digital input #1 on the robot controller for this to work.

Does this help?
__________________
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...