summaryrefslogtreecommitdiff
path: root/i/marvin/src/asserv/asserv.cc
diff options
context:
space:
mode:
authordufourj2006-05-26 22:02:30 +0000
committerdufourj2006-05-26 22:02:30 +0000
commit526a70ea2f2505d512b6567ebf052ad0b65c2319 (patch)
tree743dc77b9f594d5b096169d38df3847bf9a879f3 /i/marvin/src/asserv/asserv.cc
parente9a0712596a4d481ba4ecd5f4a25d55da462aaaa (diff)
Asserv :
- activation des stats pour savoir la position ; - correction d'un facteur de 256 ; Es : - correction du bug pour la détection de couleurs du trou. Ai : - amélioration de l'algo.
Diffstat (limited to 'i/marvin/src/asserv/asserv.cc')
-rw-r--r--i/marvin/src/asserv/asserv.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/i/marvin/src/asserv/asserv.cc b/i/marvin/src/asserv/asserv.cc
index 9298c3c..48c2ad5 100644
--- a/i/marvin/src/asserv/asserv.cc
+++ b/i/marvin/src/asserv/asserv.cc
@@ -324,7 +324,7 @@ Asserv::receive (char command, const Proto::Frame &frame)
break;
case 'X':
if (proto_.decode (frame, "DDD", x, y, a))
- receiver_.receivePos (stepToMm (x), stepToMm (y), avrToRad (a));
+ receiver_.receivePos (stepToMm (x / 256), stepToMm (y / 256), avrToRad (a));
break;
case 'S':
if (proto_.decode (frame, "BB", t, a))