experiment with reverse
[201903hackathon.git] / cpp / openCVnaiveObstacleAvoidance / openCVnaiveObstacleAvoidance.cpp
index 5c8807c..c8b60a3 100644 (file)
@@ -61,7 +61,7 @@ class MyListener : public IDepthDataListener
     const string bobbycar_backward = "b";
 
     uint8_t bobbycar_reversing = 254;
-    royale::Vector<royale::String> boobycar_reversing_script ={"s","b","b","b","b","r","b","r","b","r","b"};
+    royale::Vector<royale::String> boobycar_reversing_script ={"s","b","b","b","r","r","r","r","r","r","b","b"};
 
 public :
 
@@ -271,6 +271,7 @@ private:
     {
         if (bobbycar_reversing<boobycar_reversing_script.size()) {
             std::cout << boobycar_reversing_script.at(bobbycar_reversing++) << std::endl;
+            return;
         }