@@ -0,0 +1,1974 @@
+package no.itera.lego;%0A%0Aimport java.lang.reflect.Field;%0A%0Aimport lejos.hardware.motor.EV3LargeRegulatedMotor;%0Aimport lejos.hardware.port.MotorPort;%0Aimport lejos.hardware.port.SensorPort;%0Aimport lejos.hardware.sensor.EV3ColorSensor;%0Aimport lejos.hardware.sensor.EV3IRSensor;%0Aimport lejos.robotics.Color;%0Aimport lejos.robotics.RegulatedMotor;%0Aimport lejos.robotics.SampleProvider;%0A%0Apublic class Helpers %7B%0A%0A  private RegulatedMotor motorRight;%0A  private RegulatedMotor motorLeft;%0A  private RegulatedMotor motorCanon;%0A  private EV3IRSensor irSensor;%0A  private EV3ColorSensor colorSensor;%0A%0A  private SampleProvider rangeSampler;%0A  private float%5B%5D lastRange;%0A%0A  private String%5B%5D colors;%0A%0A  public Helpers() %7B%0A    motorRight = new EV3LargeRegulatedMotor(MotorPort.A);%0A    motorLeft = new EV3LargeRegulatedMotor(MotorPort.B);%0A    motorCanon = new EV3LargeRegulatedMotor(MotorPort.C);%0A    irSensor = new EV3IRSensor(SensorPort.S1);%0A    colorSensor = new EV3ColorSensor(SensorPort.S4);%0A%0A    rangeSampler = irSensor.getDistanceMode();%0A    lastRange = new float%5BrangeSampler.sampleSize()%5D;%0A%0A    colors = getColors();%0A  %7D%0A%0A  public RegulatedMotor getMotorRight() %7B%0A    return motorRight;%0A  %7D%0A%0A  public RegulatedMotor getMotorLeft() %7B%0A    return motorLeft;%0A  %7D%0A%0A  public RegulatedMotor getMotorCanon() %7B%0A    return motorCanon;%0A  %7D%0A%0A  public EV3IRSensor getIrSensor() %7B%0A    return irSensor;%0A  %7D%0A%0A  public EV3ColorSensor getColorSensor() %7B%0A    return colorSensor;%0A  %7D%0A%0A  public float getDistance() %7B%0A    rangeSampler.fetchSample(lastRange, 0);%0A    return lastRange%5B0%5D;%0A  %7D%0A%0A  public String getColorName() %7B%0A    int color = colorSensor.getColorID();%0A    if (color %3C 0 %7C%7C color %3E= colors.length) %7B%0A      return %22NO_COLOR%22;%0A    %7D%0A    return colors%5Bcolor%5D;%0A  %7D%0A%0A  private String%5B%5D getColors() %7B%0A    Field%5B%5D names = Color.class.getFields();%0A    String%5B%5D list = new String%5Bnames.length%5D;%0A    for (int i = 0; i %3C list.length; i++) %7B%0A      list%5Bi%5D = names%5Bi%5D.getName();%0A    %7D%0A    return list;%0A  %7D%0A%7D%0A

Add a helper class