Hello,
I have just wrote a program for my NXT with leJOS.
But while the NXT is fulfilling the Task, an error-sign pops up with:
class: 32
Method 146
Pc 11385
Here my programm:
import ch.aplu.nxt.*;
import lejos.nxt.LCD;
public class LightSensorEx1
{
public LightSensorEx1()
{
NxtRobot robot = new NxtRobot();
LightSensor ls = new LightSensor(SensorPort.S1);
LightSensor rs = new LightSensor(SensorPort.S2);
robot.addPart(ls);
robot.addPart(rs);
ls.activate(true);
rs.activate(true);
Gear gear = new Gear();
gear.setSpeed(30);
robot.addPart(gear);
while (true)
{
if ( ls.getValue()>435)
{
gear.backward(1);
}
}
}
public static void main(String[] args)
{
new LightSensorEx1();
}
}
Its not the full programm just the basics.. .to show you my problem
Just give me a hint why there is an error sign ... because it is something like a homework
Thanks for your help
