Print Float to LCD

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

Moderators: 99jonathan, roger, imaqine

Print Float to LCD

Postby chris » Mon Jun 04, 2007 9:17 am

Firstly, thanks to Brian for the excellent book. Like a lot of people, I recieved my copy having pre-ordered it several months back. Yes - Ive had all the standard problems with compiling, linking, downloading, eclipse, etc. But - I can now successfully get leJOS programs running on my NXT.

I'm a Java noob, (athough I've dabbled with vB & C++) so I may be completely missing the point, but...

My problem is - for debugging (and possibly other?) purposes, I need to display the co-ordinates from TachoNavigator on the LCD. These are Float values, and LCD does not have a drawFloat method. Float does not have a toString method either.
How do I facilitate printing a Float on the LCD, in the same way as LCD.drawInt() or LCD.drawString()?

Thanks

Chris
chris
New User
 
Posts: 2
Joined: Mon Jun 04, 2007 9:02 am

Postby chris » Mon Jun 04, 2007 11:13 am

Sorry folks -
I think Lawrie has given the answer here:

viewtopic.php?p=340&highlight=#340

:oops:
chris
New User
 
Posts: 2
Joined: Mon Jun 04, 2007 9:02 am


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 5 guests

more stuff