View Single Post
  #2   Spotlight this post!  
Unread 09-12-2006, 12:19
Donut Donut is online now
The Arizona Mentor
AKA: Andrew
FRC #2662 (RoboKrew)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Goodyear, AZ
Posts: 1,292
Donut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond repute
Re: Question about programing the bumper sensors

If you were programming using C code, I believe you can hook up any digital sensor to an interrupt port and cause it to trigger an interrupt upon a certain state. However, I don't think this is possible using EasyC, though I could be wrong.

Likewise, if you have access to it (I don't know, haven't used EasyC in a while), putting a command to read the sensor input into the fast loop as opposed to the main one will read as fast as possible with other code executing, which may be fast enough for what you need.

Unfortunately, I don't think either of those options will work using EasyC.
__________________
FRC Team 498 (Peoria, AZ), Student: 2004 - 2007
FRC Team 498 (Peoria, AZ), Mentor: 2008 - 2011
FRC Team 167 (Iowa City, IA), Mentor: 2012 - 2014
FRC Team 2662 (Tolleson, AZ), Mentor: 2014 - Present