From 60d3060306a09f301b09201cfaefc9a1f88096c4 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Tue, 10 May 2011 19:37:43 +0200 Subject: digital/{ai,io}: add define for backward/forward --- digital/ai/src/common/defs.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'digital/ai/src/common') diff --git a/digital/ai/src/common/defs.h b/digital/ai/src/common/defs.h index f16e9e52..beec5608 100644 --- a/digital/ai/src/common/defs.h +++ b/digital/ai/src/common/defs.h @@ -43,6 +43,13 @@ typedef struct position_t position_t; /** Convert degrees to an angle usable in position_t. */ #define POSITION_A_DEG(a) G_ANGLE_UF016_DEG (a) +/** No particular direction. */ +#define DIRECTION_NONE 0 +/** Forward direction, along the robot X axis. */ +#define DIRECTION_FORWARD 1 +/** Backward, opposite the robot X axis. */ +#define DIRECTION_BACKWARD 2 + /** Team color, determine the start zone side. */ enum team_color_e { -- cgit v1.2.3