| | Re: RotateMotorEx hangs
|
| (...) Hi Elizabeth: Here is how you could do it in Java: LightSensor eye = new LightSensor(SensorPort.S1); Motor.A.setSpeed(720); // 2 revolutions per second LCD.drawString("wait for dark",0,0); LCD.refresh(): Motor.A.rotate(3600,true); //rotate 10 (...) (17 years ago, 8-Aug-07, to lugnet.robotics.nxt)
| | | | Re: RotateMotorEx hangs
|
| (...) <snipped> The RotateMotor call is designed to block. If you don't want to block then you can write code almost exactly like what Roger wrote in Java using other NXC API calls. Like so: #define UF_TLSM UF_UPDATE_TACHO_LIMI...PDATE_MODE #define (...) (17 years ago, 8-Aug-07, to lugnet.robotics.nxt)
| |