View Single Post
Old 01-13-2007, 02:01 PM   #33
cherrybomb
Variable Bitrate
cherrybomb's CarPC Specs
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Vehicle: 1999 Ford Explorer
Posts: 227
My Photos: ()
Quote: Originally Posted by sama View Post
Now everything works exactly as it should. All motions and buttons are captured and reverse axis corrected etc.

Here's the Java source code.
SpaceNavigator class
Visualizer class

@cherrybomb
Of most interest, are the decodeValues and shift methods in the SpaceNavigator class. I had to use a char in Java since that's an unsigned byte (bytes are from -127-128 and can't be unsigned... grrr)

Looks good. Thanks for your work on decoding this. Helps to have a lot of this worked out even without having the device in my possession. I hope I'll have mine late next week or early the week after (lousy slow shipping).

Meanwhlie, I'll start working on some C++ code for this. I'm thinking the "driver" part will be the potentially multi platform part, and the configuration UI will probably be platform specific. I'd like to write the "driver" in C++, then write the supporting stuff in .NET or java since the coding will be a lot easier.

Not sure what the consensus is around here about having the .NET framework on a CarPC though, unless you're running Centrafuse.

First release will probably be something that just controls the mouse. ;-)
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.
cherrybomb is offline   Reply With Quote