Пример #1
0
/*******************************************************************
* Function:			void checkIR(void)
* Input Variables:	none
* Output Return:	none
* Overview:			This function update all of the infrared range
*					finding sensor values sequentially
********************************************************************/
void checkIR( void )
{
	// Update all IR values
	ftIR = getFrontIR();
	bkIR = getBackIR();
	ltIR = getLeftIR();
	rtIR = getRightIR();
}
Пример #2
0
void getIR()
{
	ft = getFrontIR();
	bk = getBackIR();
	rt = getRightIR();
	lt = getLeftIR();
	frontRight = ATTINY_get_IR_state(ATTINY_IR_RIGHT);
	frontLeft =  ATTINY_get_IR_state(ATTINY_IR_LEFT);
}