Zürcher Eliteeinheit / Mbed 2 deprecated ROME2_P4

Dependencies:   ROME2_P2 mbed

Fork of ROME2_P3 by Zürcher Eliteeinheit

Files at this revision

API Documentation at this revision

Comitter:
Appalco
Date:
Fri Mar 16 19:44:20 2018 +0000
Parent:
2:13da48f33ab7
Child:
4:4428ede9beee
Commit message:
added commented untested fwd detection

Changed in this revision

StateMachine.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/StateMachine.cpp	Fri Mar 16 15:17:08 2018 +0000
+++ b/StateMachine.cpp	Fri Mar 16 19:44:20 2018 +0000
@@ -98,12 +98,10 @@
                     controller.setTranslationalVelocity(0);
                     controller.setRotationalVelocity(ROTATIONAL_VELOCITY);
                 }
-          /*  else if(led)
+          /*  else if(led)/// touch fwd sensor first recude velocity! TODO arber and sommer 
                 {
                     
-                    state = TURN_RIGHT;
-                    controller.setTranslationalVelocity(0);
-                    controller.setRotationalVelocity(-0.5f);
+                    controller.setTranslationalVelocity(TRANSLATIONAL_VELOCITY/4);
                 }
                 */