Sorry for sending so many mails but I think I found a bug, or maybe you just haven't implemented it yet. The method */Travel()/* and */Rotate()/* never return because they call /*Vehicle.left()*, *right()*, *backward()*,/ or /*forward()*/, and these methods call /*Motor.getBlockTacho()*/ and /*Motor.getRotationCount()*/. In effect, these methods always return 0, even if you rotate the motors with /*rotateTo()*/.

Moreover, I tried to change the code of *ServoNavigator*, so that /*Rotate()*/ calls /*Vehicle.left(count,true)*/ instead of */vehicle.left(count,false)/*. It works since this method does not check /*Motor.getRotationCount()*/ when *returnNow* is true. But in this case we would need a methode /*isMoving()*/, which does not exist... So I cannot find any solution. Please tell me if you see one.

I was thinking about using *Tachonavigator* of course, which has a* /isMoving()/* method, but I really need to have this communication between the computer and the NXT. That's why I asked few days ago if it is possible to call the method of *Tachonavigator*, which is on the NXT, from a method which is on the computer...

(Note: *Vehicle* is the instance of the class *SyncMotors*)
Best regards,
Emmanuel

Emmanuel Béraud a écrit :
Oops sorry Brian for the "mailto", I think it appears because I did a copy-paste to write your name (to be sure not to make spelling mistakes)
Emmanuel

Emmanuel Béraud a écrit :
Hello,
Obviously the methods Rotate and Travel of the ServoNavigator (in iCommand) class never returns (I know they are supposed to return only when the task they are supposed to do is finished). However it seems that they do their task, so I would like to know if someone else has had this problem. Maybe the author (Brian Bagnall) could tell me more...

Regards,
Emmanuel
<mailto:[EMAIL PROTECTED]>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Lejos-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lejos-discussion



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Lejos-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lejos-discussion


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Lejos-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lejos-discussion

Reply via email to