I´ve got a big Problem by using the goTo Method for a SimpleNavigator.
The problem is, that the robot don´t goes the way he should.
When i use the Points the robot moves not the same way as when i insert the values manually like the uncommented lines.
Can someone tell why he do this an how i can solve this problem?
Its very important because im just writing my bachelor paper over nxj programming.
- Code: Select all
Point a,b,c;
a = new Point(10,0); b = new Point(20,0); c = new Point(20,10);
System.out.println(tn.getX() + " " + tn.getY());
Button.waitForPress();
// tn.goTo(10, 0);
tn.goTo(a.x, a.y);
System.out.println(tn.getX() + " " + tn.getY());
Button.waitForPress();
// tn.goTo(20, 0);
tn.goTo(b.y,b.y);
System.out.println(tn.getX() + " " + tn.getY());
Button.waitForPress();
// tn.goTo(20, 10);
tn.goTo(c.x,c.y);
System.out.println(tn.getX() + " " + tn.getY());
Button.waitForPress();
