View Single Post
  #1   Spotlight this post!  
Unread 30-01-2008, 00:22
darkdwarven's Avatar
darkdwarven darkdwarven is offline
Registered User
AKA: Phantom
FRC #2348
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2005
Location: Hawaii
Posts: 8
darkdwarven is an unknown quantity at this point
Question Re: ir sensor Board ??????????????????????

I've been searching the forums for remedies to why we can't make our IR Board work. And i've found some that for me have had no effect on the performance of our motors. Right now to test if we can program anything to correspond with the signals that tie IR board reveives/gives, we inserted the following code:
Code:
if (rc_dig_in07 = 0)
{
	ButtonPressed = TRUE;
	if (ButtonPressed = TRUE)
		{
			pwm01 = pwm02 = 127;
		}
}
That is a function we are trying to put right before our autonomous program. The purpose was to allow the motors to run and if there is an interrupt from the IR Board, the motors would stop for the remainder. The autonomous program works fine without that 'if' statement but doesn't work at all with it. It compiles just fine with everything defined and all. Also, we are working off of port 7 because our advisor read something in the default guide about 1-6 being reserved for more advanced functions?

Any suggestions for resources or troubleshooting options??

Thanks,
Team 2348
__________________
I have nothing important to say here, thus I've wasted a few seconds of your life. Isn't that depressing?

Last edited by darkdwarven : 30-01-2008 at 00:25.