]> rtime.felk.cvut.cz Git - hubacji1/psp.git/blobdiff - src/psp.cc
Implement naive fe_perpendicular
[hubacji1/psp.git] / src / psp.cc
index 395deecffc0436ea5cb4cc1f096978a2bf302708..6cc5701a4356effacef6d2c233b5e14362fc799c 100644 (file)
@@ -266,7 +266,13 @@ void PSPlanner::fe_perpendicular()
         //
         //      Another approach could be testing angles from the
         //      beginning of the escape parkig slot maneuver.
-        return fer_perpendicular();
+        if (this->forward())
+                this->cc().sp(-0.01);
+        else
+                this->cc().sp(0.01);
+        while (!this->left())
+                this->cc().next();
+        return;
 }
 
 void PSPlanner::fer()