nhaulrik created page: Lab7 authored by Nikolaj Cilleborg Haulrik's avatar Nikolaj Cilleborg Haulrik
...@@ -82,7 +82,8 @@ We wish to implement a behavior that handles a situation where the robot is clos ...@@ -82,7 +82,8 @@ We wish to implement a behavior that handles a situation where the robot is clos
``` ```
if ( leftDistance < stopThreshold && rightDistance < stopThreshold && frontDistance < stopThreshold ){ if ( leftDistance < stopThreshold && rightDistance < stopThreshold && frontDistance < stopThreshold ){
car.backward(power, power); //
car.backward(power, power);
Delay.msDelay(ms); Delay.msDelay(ms);
car.forward(power, 0); car.forward(power, 0);
... ...
......