From e7eeeb0d4e825a175c67cd1c0256c91362517ebb Mon Sep 17 00:00:00 2001 From: neoraider Date: Wed, 18 Apr 2007 23:00:05 +0000 Subject: Entfernungssensoren in Ordnung gebracht, Hindernisumfahrung implementiert. --- global.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'global.h') diff --git a/global.h b/global.h index 6aa13e4..3bfb285 100644 --- a/global.h +++ b/global.h @@ -2,6 +2,7 @@ #define _ROBOCUP_GLOBAL_H_ #define F_CPU 16000000UL +#define TIMER_PRESCALER 8 #define DEFAULT_SPEED 0.7 #define CURVE_SPIN 0.3 @@ -11,9 +12,16 @@ #define CAL_MIN_DIFF 0.3 #define CAL_MAX_WHITE_DIFF 0.1 +#define DISTANCE_GAIN 9 +#define DISTANCE_RECOG 4 +#define DISTANCE_MAX 6 +#define DISTANCE_MIN 5 +#define DISTANCE_SPIN 0.3 +#define DISTANCE_ANGLE 30.0 + enum Status { - Ok, White, Debris + Ok, White, Debris, DebrisWhite, Turn, TurnWhite }; #endif -- cgit v1.2.3