Hello Brian and All,

Thanks Brian for the additional information.  When I use
"NXTCommand.setVerify(true)", the ultrasonic sensor seems to work fine on a
Mac.  I managed to port my localization lab to icommand yesterday and
everything seemed to work. (You can see the RCX-LeJOS version at
http://www.mcs.alma.edu/LMICSE/LabMaterials/AI/MonteCarloLoc/MonteCarlo.htm
- NXT version still to come.) So thanks again.

However, the getDistance command doesn't work without
"NXTCommand.setVerify(true)".  I did try to the for loop idea, and all I get
are error messages and  returned values of zero.  So obviously there are
some Mac-related issues there.  But with "setVerify" I am all good for
now...

...Myles



> Date: Fri, 10 Nov 2006 17:38:19 -0600
> From: "Brian Bagnall" <[EMAIL PROTECTED]>
> Subject: Re: [Lejos-discussion] Ultrasonic on the Mac
> To: "leJOS Discussion List" <[email protected]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; format=flowed; charset="iso-8859-1";
> reply-type=original
> 
> Hi Myles,
> 
> Sorry if my short answer sounded abrupt. I just looked through your output
> and it looks like it's mostly working for you since I can see that it
> retrieved the product ID (LEGO) and the type (SONAR) from the sensor.
> 
> Try doing a for() loop that spits out distances and you will see that it
> gives good readings most of the time.
> 
> There's also a temporary workaround someone mentioned that if you use
> NXTCommand.setVerify(true) before calling methods on the Ultrasonic sensor
> it will become pretty much 100% reliable, except for the getDistances()
> method. Hopefully everything will be fixed up for iCommand 0.6.
> 
> All the best,
> 
> - Brian

-- 

Myles McNally
Professor of Computer Science
Alma College
Alma, MI 48801
989-463-7163


-------------------------------------------------------------------------
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