/******************************************************************* * 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(); }
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); }