standard missions done
[des2015.git] / dsl / runtime / src / nl / ru / des / sensors / SensorCollector.java
index 59fe6cd..4597d92 100644 (file)
@@ -10,9 +10,9 @@ import lejos.robotics.SampleProvider;
 public class SensorCollector implements MessageHandler{
        public static final int DELAY = 200;
 
-       private static final float DANGER_DISTANCE_FRONT = 0.15f;
+       private static final float DANGER_DISTANCE_FRONT = 0.175f;
        private static final float DANGER_DISTANCE_BACK = 0.035f;
-       private static final float DANGER_LIGHT = 0.45f;
+       private static final float DANGER_LIGHT = 0.40f;
        
        private Set<Integer> collectedColors;
        
@@ -45,6 +45,10 @@ public class SensorCollector implements MessageHandler{
                rightLightTime = System.currentTimeMillis();
                gyroTime = System.currentTimeMillis();
                
+               color = -1;
+               leftTouch = false;
+               rightTouch = false;
+               frontUltra = Float.MAX_VALUE;
                collectedColors = new HashSet<Integer>();
        }