summaryrefslogtreecommitdiffstats
path: root/global.h
diff options
context:
space:
mode:
Diffstat (limited to 'global.h')
-rw-r--r--global.h10
1 files changed, 9 insertions, 1 deletions
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