Переглянути джерело

added bluetooth to main class

Tom Remeeus 11 роки тому
батько
коміт
cbba24b967
1 змінених файлів з 5 додано та 1 видалено
  1. 5 1
      BoeBot.java

+ 5 - 1
BoeBot.java

@@ -7,6 +7,7 @@ public class BoeBot{
         FysiekeIndicator fysiekeindicator;
         Aansturing aansturing;
         Lijnvolger lijnvolger;
+		Bluetooth bluetooth;
 
 
         char route[];
@@ -19,6 +20,7 @@ public class BoeBot{
                 aansturing = new Aansturing(4,4);
                 lijnvolger = new Lijnvolger();
                 fysiekeindicator = new FysiekeIndicator();
+				bluetooth = new Bluetooth();
 
                 motor.setSnelheid(100);
                 motor.setRichting(true);
@@ -36,7 +38,9 @@ public class BoeBot{
 
                 boolean routeafgerond = true;
                 while(true){
-                        if(obstakelDetectie){
+                        bluetooth.getRoute();
+						
+						if(obstakelDetectie){
                                 obstakelDetectie();
                         }
                         if(afstandsbediening){