I'm currently using the Lejos eclipse plugin to create a PC project. This project sets up a bluetooth connection for me so I can remotly send commands to the NXJ.
Now I'm trying to write a program that allows me to use my arrow keys on my laptop to control the robot.
I tried using a DifferentialPilot object to send the forward(), backward(), etc messages. Where as this works, I can notice a pretty hard delay on it. When I press a key the robot starts moving 1 - 1.5 seconds later.
If I use a RemoteMotor object and write my own forward, rotate etc functions directly controlling the RemoteMotor's the delay is gone.
Though, I would prefer to use a differentialpilot, does anyone know what causes the delay/lag and how to fix it?