On Thursday 22 February 2007 03:25, emmanuel BERAUD wrote: > Hello everybody, I'm doing a master-thesis at Lund University (Sweden) > about the NXT. > I have to make the NXT perfom some navigation tasks, with obstacle > avoidance.
Good lujk with your project! > > I program only in Java, using the Lejos firmware. > In order to preform the obstacle avoidance, I really need to use the > ultrasonic sensor. > Unfortunately, you haven't included it in your java classes yet. It is in svn, but I don't think it is in a release build yet. I expect that is coming soon or if you want to try you can build it from svn but that needs an gnu ARM toolchain too. > > I can read the raw value of the port but I don't know if it's relevant. (it > doesn't seem so) That is not relevant. The sensor ports have two channels to them: 1) Analog channel. These are read with the raw value. This is used to read devices like the light sensor and push button and other resistive sensors. 2) Digital wires. These can be used as inputs or outputs. On the light sensor they are used to turn the LED on or off. Thay also can be used to make an I2C port which can be used to communicate with a compass sensor or ultrasonic sensor. Note!!! I2C only works with port 1.. port 3 at the moment. There is something wrong with trying to use it on port 4 at present, but this is being debugged. So, trying to use the raw reading method for an I2C sensor does not even look at the correct wires on the port. > Can I already use the ultrasonic sensor, and if not, when do you think it > will be available ? > > Emmanuel Béraud > Faculty of Engineering, > Lund University > Sweden ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Lejos-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lejos-discussion
