Patrick Clary / Mbed 2 deprecated WalkingRobot

Dependencies:   CircularBuffer Servo Terminal mbed Radio

Revision:
18:8806d24809c2
Parent:
17:4ec59e8b52a6
Child:
19:efba54b23912
--- a/RobotLeg.cpp	Mon May 27 03:31:58 2013 +0000
+++ b/RobotLeg.cpp	Mon May 27 20:08:03 2013 +0000
@@ -45,7 +45,7 @@
 
 vector3 RobotLeg::getPosition()
 {
-    return position;
+    return (stepping != state) ? position : stepB;
     
     /*const float deg2rad = 0.01745329f;
     vector3 p;