package boebot; import stamp.core.*; public class BoeBot{ MotorAansturing motor; Botsingdetectie botsingdetectie; FysiekeIndicator fysiekeindicator; Aansturing aansturing; Lijnvolger lijnvolger; Bluetooth bluetooth; Afstandsbediening afstandsbedieningir; boolean routeAfgerond; boolean routeplannerPauze; char[] route; static int currentCase = 4; static int currentStep = 0; public BoeBot(){ motor = new MotorAansturing(); afstandsbedieningir = new Afstandsbediening(motor, 11); botsingdetectie = new Botsingdetectie(); aansturing = new Aansturing(); lijnvolger = new Lijnvolger(); bluetooth = new Bluetooth(); motor.setSnelheid(100); motor.setRichting(true); routeAfgerond = false; routeplannerPauze = true; int[] coordinates; int btcode = 0; while(true){ btcode = bluetooth.checkBt(); if(btcode == 3){ System.out.println("Coördinaten ontvangen!"); coordinates = bluetooth.getCoordinates(); for(int i = 0; i