summaryrefslogtreecommitdiff
path: root/digital/ai
diff options
context:
space:
mode:
authorNicolas Schodet2012-03-26 00:53:22 +0200
committerNicolas Schodet2012-03-26 00:53:22 +0200
commit264e127ab49c0eef728ba28fe2c61e6b75249944 (patch)
tree0c097887efa1a18abe5bdf9e2adba994199768de /digital/ai
parent193e78c3b00e985fd4bbe3bd3306c2a00d0ac510 (diff)
digital/{ai, io, io-hub}: add support for 2012 table
This table is smaller than before.
Diffstat (limited to 'digital/ai')
-rw-r--r--digital/ai/src/common/playground.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/digital/ai/src/common/playground.h b/digital/ai/src/common/playground.h
index 18c81ecf..4f225a50 100644
--- a/digital/ai/src/common/playground.h
+++ b/digital/ai/src/common/playground.h
@@ -31,11 +31,19 @@
* angle depending of the current team color.
*/
+#ifndef EUROBOT
+# error "Need EUROBOT define for playground"
+#endif
+
/** Playground width, mm. */
#define PG_WIDTH 3000
/** Playground length, mm. */
-#define PG_LENGTH 2100
+#if EUROBOT >= 2012
+# define PG_LENGTH 2000
+#else
+# define PG_LENGTH 2100
+#endif
/** Distance to playground borders for general movements, mm. */
#define PG_BORDER_DISTANCE 250