getDistance Ultrasonic LCP

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: 99jonathan, roger, imaqine

getDistance Ultrasonic LCP

Postby Milleras » Thu Mar 08, 2012 11:41 am

Hello,
My Firmware version is 0.85.

I use lejos PC API to command a robot with android. I have downloaded LeJOS-Droid to test. For my project I use LCP because I can't run program on my brick.

I can command the motors but I can't get distance with Ultrasonic sensor, I get 1 if I use the port 1, 2 if I use the port 2,... I don't know how resolve the problem. I have searched on several web site and I have not found solutions.

The application can be downloaded here : https://robot-droid-lejos.googlecode.com/svn/
The bug is in the class /lejos.android.TachoCount.java line 65.

Thank you

Regards
Milleras
Milleras
New User
 
Posts: 3
Joined: Thu Mar 08, 2012 11:06 am

Re: getDistance Ultrasonic LCP

Postby gloomyandy » Thu Mar 08, 2012 12:44 pm

I've moved this topic to correct part of the forum...

Is there a reason why you are using an old version of leJOS? You will almost certainly get more help if you use the latest version.

Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 4085
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: getDistance Ultrasonic LCP

Postby Milleras » Thu Mar 08, 2012 12:56 pm

I'm using this version because I started with the last version of leJOS-Droid https://github.com/Shawn-in-Tokyo/leJOS-Droid.

Regards
Milleras
Milleras
New User
 
Posts: 3
Joined: Thu Mar 08, 2012 11:06 am

Re: getDistance Ultrasonic LCP

Postby skoehler » Thu Mar 08, 2012 1:00 pm

This might already be fixed in 0.9.1. I've added some LCP related fixes.
However, you'd need to update your copy of pccomms.jar and upgrade the firmware on the NXT brick.

The LeJOS-Doid application at github is probably outdated. Expect compile errors after replacing pccomm.jar with a new version.
Also, our own copy of leJOS-Droid (http://lejos.svn.sourceforge.net/viewvc ... JOS-Droid/) hasn't been updated for a while and still includes an old copy of pccomm.jar.
skoehler
leJOS Team Member
 
Posts: 1422
Joined: Thu Oct 30, 2008 4:54 pm

Re: getDistance Ultrasonic LCP

Postby Milleras » Fri Mar 09, 2012 10:10 am

Thank you so much. After update, the problem is solved.
Milleras
New User
 
Posts: 3
Joined: Thu Mar 08, 2012 11:06 am


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 3 guests

more stuff