Ive been trying to control two motors at the exact same time (stopping etc).
Normally when Motor.A.stop() followed by Motor.C.stop() is used there is a slight delay and the same using forward() method.
shown below.
- Code: Select all
Motor.A.stop();
Motor.C.stop();
I found on the forums if you write it like this.
- Code: Select all
Motor.A.stop()true;
Motor.C.stop();
it will stop at the same time. Here's the link http://lejos.sourceforge.net/forum/viewtopic.php?f=7&t=3033&p=15001&hilit=+motor+stop#p15001
I tried this method and all i get is errors in the compiler. is there any other methods to achieve this?
Thanks for the help.
