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;
rightLightTime = System.currentTimeMillis();
gyroTime = System.currentTimeMillis();
+ color = -1;
+ leftTouch = false;
+ rightTouch = false;
+ frontUltra = Float.MAX_VALUE;
collectedColors = new HashSet<Integer>();
}