From bff1fca84d0a1af55ab79f34cec6d0326d5f6ee6 Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Sun, 20 Apr 2008 16:04:02 +0200 Subject: * digital/io/src - fix order in defines (do the division at the end) ; - fix angle defines. --- digital/io/src/giboulee.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'digital/io/src/giboulee.h') diff --git a/digital/io/src/giboulee.h b/digital/io/src/giboulee.h index 2e0ce762..d8f93ef0 100644 --- a/digital/io/src/giboulee.h +++ b/digital/io/src/giboulee.h @@ -52,13 +52,13 @@ * it. * For the moment, 15% of a complete turn */ -#define BOT_ARM_MIN_TO_OPEN (BOT_ARM_STEP_ROUND / 100 * 15) +#define BOT_ARM_MIN_TO_OPEN (BOT_ARM_STEP_ROUND * 15L / 100) /** * Steps number relative to the beginning of a third round for the 'noted' * position required by the get sample FSM. */ -#define BOT_ARM_NOTED_POSITION (BOT_ARM_THIRD_ROUND / 3 * 2) +#define BOT_ARM_NOTED_POSITION (BOT_ARM_THIRD_ROUND * 2 / 3) /** * How to compute a angle for giboulee? -- cgit v1.2.3