Our robotics club just updated 2 robots to Lejos 0.9.0. We are finding that the robots do not drive in a straight line: sometimes they veer left; sometimes, right. It seems as if the motors are not synched, but I cannot find how to correct this. Is there something wrong with the way we set up the DifferentialPilot?
- Code: Select all
public class SetupTest
static float wheelBase=15.00F; // sets width of robot from wheel to wheel
static float wheelDiameter= 8.27F; //Sets wheel diameter
static DifferentialPilot pilot = new DifferentialPilot(wheelDiameter, wheelBase, Motor.A, Motor.B, true);
public static void main(String args)