@@ -0,0 +1,1595 @@
+package no.itera.sumo.example;%0A%0Aimport com.jcraft.jsch.ForwardedTCPIPDaemon;%0A%0Aimport lejos.hardware.Button;%0Aimport lejos.hardware.Sound;%0Aimport lejos.robotics.RegulatedMotor;%0Aimport no.itera.lego.EV3Helper;%0Aimport no.itera.lego.example.SampleSet;%0A%0Apublic class SumoMain %7B%0A%09private final RegulatedMotor motorLeft;%0A%09private final RegulatedMotor motorRight;%0A%09private SampleSet lastSampleSet;%0A%09private EV3Helper ev3Helper;%0A%0A%09public SumoMain()%7B%0A%09%09ev3Helper = new EV3Helper(true);%0A%09%09motorLeft = ev3Helper.getMotorLeft();%0A%09%09motorRight = ev3Helper.getMotorRight();%0A%09%09lastSampleSet = new SampleSet(ev3Helper);%0A%09%7D%0A%09%0A%09private void drive() %7B%0A%09%09boolean run = true;%0A%09%09//boolean turning = true;%0A%09%09ev3Helper.tankTurn();%0A%09%09while(run) %7B%0A%09%09%09lastSampleSet.takeSamples();%0A%09%09%09//System.out.println(lastSampleSet.getLastColor());%0A%09%09%09if (lastSampleSet.getLastColor().equals(%22BROWN%22)) %7B%0A%09%09%09//%09ev3Helper.stop();%0A%09%09%09//%09Sound.beep();%0A%09%09%09//%09Button.waitForAnyPress();%0A%09%09%09%09ev3Helper.backward(5);%0A%09%09%09%09//ev3Helper.backward(5); %0A%09%09%09%09ev3Helper.tankTurn(100);%0A%09%09%09%7D  %0A%09%09%09System.out.println(lastSampleSet.getLastDistance());%0A%09%09%09if (lastSampleSet.getLastDistance() %3C 100) %7B //see opponent%09%0A%09%09%09%09ev3Helper.backward();%0A%09%09%09%09//ev3Helper.forward();%0A%09%09%09%7D else %7B%0A%09%09%09%09ev3Helper.tankTurn();%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%0A%09%09%09%0A%09%09%7D%0A%09%7D%0A%09%0A%09public static void main(String%5B%5D args)%7B%0A%09%09SumoMain sumo = new SumoMain();%0A%09%09System.out.println(%22startup complete.%5CnClick any button to drive%22);%0A%09%09Button.waitForAnyPress();%0A%09%09try %7B%0A%09%09%09Thread.sleep(5);%0A%09%09%7D catch (InterruptedException e) %7B%0A%09%09%09// TODO Auto-generated catch block%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%09sumo.drive();%0A%09%7D%0A%0A%09%0A%7D%0A

add messy Sumo examplte