@@ -10,7 +10,7 @@ public class BoeBot{
motor = new MotorAansturing();
botsingdetectie = new Botsingdetectie();
fysiekeindicator = new FysiekeIndicator();
- motor.setSnelheid(100);
+ motor.setSnelheid(50);
motor.setRichting(true);
motor.start();
@@ -14,6 +14,8 @@ public class Botsingdetectie{
IrDetectL = irL.detect();
IrDetectR = irR.detect();
+ System.out.println(IrDetectL);
+ System.out.println(IrDetectR);
if(IrDetectL || IrDetectR){
return true;
@@ -6,7 +6,6 @@ package boebot;
import stamp.core.*;
public class Main{
public static void main(){
- MotorAansturing motor = new MotorAansturing();
+ BoeBot bot = new BoeBot();
}
-
@@ -26,8 +26,7 @@ public class MotorAansturing{
public void start(){
- int maxSnelheid = snelheidL;
- System.out.println(maxSnelheid);
+ int maxSnelheid = snelheidL;
for (int i=0; i<=maxSnelheid; i = i + 10) {
setSnelheid(i);
rijden();