From 264e127ab49c0eef728ba28fe2c61e6b75249944 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Mon, 26 Mar 2012 00:53:22 +0200 Subject: digital/{ai, io, io-hub}: add support for 2012 table This table is smaller than before. --- digital/ai/src/common/playground.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'digital/ai/src') 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 -- cgit v1.2.3