00001 #include "bumper_switch.h" 00002 00003 static short bumper_left_pin, bumper_right_pin; 00004 00005 void initializeBumperSwitch(int bump_left_pin, int bump_right_pin) { 00006 bumper_left_pin = bump_left_pin; 00007 bumper_right_pin = bump_right_pin; 00008 } 00009 00010 // 00011 int getBumperLeftSwitch() { 00012 return !IN(bumper_left_pin); 00013 } 00014 00015 // 00016 int getBumperRightSwitch() { 00017 return !IN(bumper_right_pin); 00018 }