There still seems to be some problems with Ultrasonic that I thought were 
worked out. The getDistances() method was providing multiple pings but I 
just tried it and it seems to return all -1 values. I'm not sure why it 
doesn't test anymore - possibly because of some changes made to the way 
strings were being handled in code (this was a Linux only bug we recently 
fixed which might have caused the Ultrasonic bug).

The getDistance() method looks to be 100% reliable but methods for returning 
multiple bytes like getProductId() are hit and miss.

David Schlangen noted that in the DistanceTest sample if you uncomment 
NXTCommand.setVerify(true); it works 100% reliable instead of mostly 
reliable.

I'll research this so for future releases there will be no need to use 
setVerify(true) to make this work. (setVerify makes all method calls a 
little slower)

- Brian 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Lejos-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lejos-discussion

Reply via email to