diff --git a/ball_detect/main.c b/ball_detect/main.c index b18e382..f64297d 100644 --- a/ball_detect/main.c +++ b/ball_detect/main.c @@ -10,6 +10,12 @@ #define BALL_SENSOR_1 0 #define BALL_SENSOR_2 1 #define BALL_SENSOR_3 2 +#define DIP_SWITCH_1 0 +#define DIP_SWITCH_2 1 +#define DIP_SWITCH_3 2 +#define DIP_SWITCH_4 3 +#define DIP_SWITCH_5 4 +#define DIP_SWITCH_6 5 #define F_OSC F_CPU #define ULTRASONIC_SENSOR 4 #define waitForTX() while (!(UCSR0A & 1< vision_result[j]) { - small = vision_result[j]; - index = j; - } - } - sendc('0' + index); - sendc('\r'); - sendc('\n'); - _delay_ms(200); } return 0; }