From 56e637ec77fc6c220009663dcc35712e399bfd5d Mon Sep 17 00:00:00 2001 From: dufourj Date: Fri, 26 May 2006 08:12:24 +0000 Subject: Général : - commit du programme d'après premier match. --- i/marvin/src/motor/motor.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'i/marvin/src/motor/motor.cc') diff --git a/i/marvin/src/motor/motor.cc b/i/marvin/src/motor/motor.cc index d3fadfc..32d94eb 100644 --- a/i/marvin/src/motor/motor.cc +++ b/i/marvin/src/motor/motor.cc @@ -24,10 +24,12 @@ // }}} #include "motor.hh" +#include + /// Constructor. Motor::Motor (void) : asserv_ (*this), seq_ (0), finish_ (true), blocked_ (false), - x_ (0.0), y_ (0.0), a_ (0.0) + x_ (0.0), y_ (0.0), a_ (0.0), log_ ("Motor") { } @@ -151,6 +153,7 @@ Motor::receivePos (double x, double y, double a) x_ = x; y_ = y; a_ = a; + log_ ("Pos") << "x " << x << " y " << y << " a " << a / (2 * M_PI) * 360; } void -- cgit v1.2.3