From f23c6e030be801244ca52c5af01c140441c8dd0e Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Thu, 21 May 2009 08:11:29 +0200 Subject: * digital/io/src: - correctly compute mirror angle. --- digital/io/src/playground.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'digital/io') diff --git a/digital/io/src/playground.h b/digital/io/src/playground.h index 21060d3b..a755e885 100644 --- a/digital/io/src/playground.h +++ b/digital/io/src/playground.h @@ -63,7 +63,7 @@ * value of the angle depending on the color. */ #define PG_A_VALUE_COMPUTING(a) \ - (bot_color ? (a) : ((a) + BOT_ANGLE_DEGREE * 180)) + (bot_color ? (a) : (BOT_ANGLE_DEGREE * 180) - (a)) /** * The position where to reset the bot when it starts, depending on the color. -- cgit v1.2.3