summaryrefslogtreecommitdiff
path: root/i/chuck/src/motor/motor.cc
diff options
context:
space:
mode:
authorbecquet2007-05-11 02:46:56 +0000
committerbecquet2007-05-11 02:46:56 +0000
commit059d8ab05064e1cdd907e643b09c2bcc58daaf37 (patch)
treeb9feca5be3e3d0943625a113377e2a58536a671d /i/chuck/src/motor/motor.cc
parent7bd4a027d0b22489c998c201987855d73c79bee1 (diff)
Diffstat (limited to 'i/chuck/src/motor/motor.cc')
-rw-r--r--i/chuck/src/motor/motor.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/i/chuck/src/motor/motor.cc b/i/chuck/src/motor/motor.cc
index 32d94eb..1572845 100644
--- a/i/chuck/src/motor/motor.cc
+++ b/i/chuck/src/motor/motor.cc
@@ -141,6 +141,19 @@ Motor::receiveAck (int seq)
}
}
}
+/// The Best Evite Program ;p
+void
+Motor::avoidrobot(void)
+{
+ rotate(3.14116/2);//faire calcul ailleur
+ move(100,0);
+ rotate(3.14116/2*(-1));//voir plus haut
+ move(300,0);
+ rotate(3.14116/2*(-1));
+ move(100,0);
+ rotate(3.14116/2);
+ move(300,0);
+}
void
Motor::receiveCounterStat (int l, int r)