summaryrefslogtreecommitdiff
path: root/i/marvin/src/motor/motor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'i/marvin/src/motor/motor.cc')
-rw-r--r--i/marvin/src/motor/motor.cc5
1 files changed, 4 insertions, 1 deletions
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 <cmath>
+
/// 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