summaryrefslogtreecommitdiffhomepage
path: root/digital/io
diff options
context:
space:
mode:
authorJérémy Dufour2009-05-21 08:11:29 +0200
committerJérémy Dufour2009-05-21 08:11:29 +0200
commitf23c6e030be801244ca52c5af01c140441c8dd0e (patch)
tree02c6b96144bcbfd56db6e8e467cda79a48e5439e /digital/io
parente3784691ff5369873f0b82c9bcfa8b0a735de754 (diff)
* digital/io/src:
- correctly compute mirror angle.
Diffstat (limited to 'digital/io')
-rw-r--r--digital/io/src/playground.h2
1 files changed, 1 insertions, 1 deletions
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.