Page 1 of 42 1234567891011 ... LastLast
Results 1 to 10 of 415

Thread: Space Navigator PE Driver Development Thread

  1. #1
    FLAC sama's Avatar
    Join Date
    Feb 2006
    Location
    London, UK
    Posts
    1,375

    Space Navigator PE Driver Development Thread

    PROGRESS: We've now decoded the data that comes back from the HID device, and pending some development to make it do something useful. This is no longer a Girder defition file, it'll be a multiplatform stand-alone app

    Following some developments in this thread, a Girder definition is now under development for the 3DConnexion SpaceNavigator PE. This is a device that has 6 axis of motion, and two buttons.

    So far, thanks to cherrybomb, it has been found that the latest version of Girder does not work with the HID plugin, as the previous verison did (4.0.1). Having downloaded this and configured the HID plugin, the values being read shown:

    00 00 00 00 00 00

    pressing buttons 1 or 2, give definitive values (first two digits change only), but things move way too fast to be able to determine how the different axis affect the numbers. I just about see that moving along some axis, sets some pair to FF, and others start playing.

    Also, to add to the spice, i think the pan motion, is in fact a combination of two motions. Since this device is like a hat on a stick, then the stick moving forward AND the hat being tilt backwards equates to a panning action.

    Anyway, I think a seperate development thread is in order for this, rather than a price drop one! So here it is... I'll post any updates here


    Let's start with the simple bit shall we:

    Button Left: 01 00 00 00 00 00
    Button Right: 02 00 00 00 00 00
    Both BUttons: 03 00 00 00 00 00

  2. #2
    Super Moderator. If my typing sucks it's probably because I'm driving.... turbocad6's Avatar
    Join Date
    Oct 2004
    Location
    NY
    Posts
    6,234
    subscribed

  3. #3
    FLAC sama's Avatar
    Join Date
    Feb 2006
    Location
    London, UK
    Posts
    1,375
    UPDATE:

    Girder is proving to be a bit of a pain to learn, so to deocode the output of this device, cherrybomb and I have been working together. He's written a nice little app that gets HID output in .net, and he's sending it down a network port to a little java server that I wrote.

    Now that we are both well within our elements, we should have this device sussed soon.

  4. #4
    Super Moderator. If my typing sucks it's probably because I'm driving.... turbocad6's Avatar
    Join Date
    Oct 2004
    Location
    NY
    Posts
    6,234
    that's all I need to hear, I'm ordering one now

  5. #5
    FLAC sama's Avatar
    Join Date
    Feb 2006
    Location
    London, UK
    Posts
    1,375
    lol! good on ya! now I feel we have a responsibility to get this working

    we've got a couple of apps that shows progress bars of the 7 two-word bytes that come back from the HID input.

    the device is very touchy-feely and spews shedloads of data when you barely touch it. I'm trying to be very precise with the movements, and to corrolate the movements that map to particular bars. Only bars 1-6 count, as the first figure is always 1, 2 or 3.

    You'd expect that since there are 6 axis, and 6 values, each axis would map to a value. But that's not the case. I think they are combined to acheive a higher level of precision. So it's now a trial and error to decode it.

    I've noticed, when data comes in, the whole line has starts either with a 1 or a 2. Creating a seperate set of bars for each, and displaying all of them, seems to show that there may in fact be 14 lots of data.

    next step I will try to combine the numbers from the two lines to create a 16bit number, and then stick a sign (+/-) on it. I've got a good feeling about this strategy and depending on how sleepy I get now, I may jut try it


    PS. I'm thinking out loud, so if cherrybomb sees this, he can know what I've been up to, and of course anyone else can follow

  6. #6
    inh
    inh is offline
    Maximum Bitrate
    Join Date
    Jan 2007
    Location
    Fort Riley KS
    Posts
    515
    very cool! at least your gettin somewhere man. i cant wait to get mine. too many speeding tickets to pay first.. :-/

  7. #7
    FLAC sama's Avatar
    Join Date
    Feb 2006
    Location
    London, UK
    Posts
    1,375
    I FIGURED IT ALL OUT!!!!


    I've seperated each axis... shoudln't be too hard now

  8. #8
    inh
    inh is offline
    Maximum Bitrate
    Join Date
    Jan 2007
    Location
    Fort Riley KS
    Posts
    515
    post details! i love technical crap

  9. #9
    FLAC sama's Avatar
    Join Date
    Feb 2006
    Location
    London, UK
    Posts
    1,375
    ok, say you get two lines back that look like this:

    Code:
    1 8 0 161 255 251 255 
    2 245 255 0 0 238 255
    you organise this as follows:

    Code:
    [0] [1] [2] [3] [4] [5] [6]
     1   8   0  161 255 251 255 
    
    [0] [1] [2] [3] [4] [5] [6]
     2  245 255  0   0  238 255

    and this by using the table below, you can determine the stick's position.


    Code:
    pan left/right axis
    value from 1[1]
    right: 2[1] = 0
    left : 2[1] = 255
    
    pan fwd/back axis
    value from 3[1]
    back : 4[1] = 0
    fwd  : 4[1] = 255
    
    push/pull axis
    value from 5[1]
    push : 6[1] = 0
    pull : 6[1] = 255
    
    tilt fwd/back axis
    value from 1[2]
    back : 2[2] = 0
    fwd  : 2[2] = 255
    
    tilt left/right axis
    value from 3[2]
    left : 4[2] = 0
    right: 4[2] = 255
    
    twist axis
    value from 5[2]
    right: 6[2] = 0
    left : 6[2] = 255

    And finally, buttons are on lines that start with a 3, and they are:

    3 1 0 0 0 0 0 Left Button
    3 2 0 0 0 0 0 Right Buton
    3 3 0 0 0 0 0 Both Buttons

    Just need to tidy the code now so each axis value ranges from -255 to +255, with a 2 bit modifier to indicate button state (0=none, 1 = left, 2 = right, 3 = both).


    Damn, I need to sleep. I have to wake up in 5 hours!

  10. #10
    MySQL Error scott_fx's Avatar
    Join Date
    Dec 2004
    Location
    Los Angeles Ca
    Posts
    3,996
    damn you guys...you just spent another $65 of my money!
    New System in progress:
    M10k
    Phaze TD1500 ~> Dynaudio MD130
    Phaze TD1500 ~> Seas g18rnx/p
    Zapco Ref 500.1 ~ 12" tc-9
    Behringer DCX2496 ~ Envision Electronics psu
    Transflective Xenarc

    My Car Pc Install
    My Boat Pc worklog

Page 1 of 42 1234567891011 ... LastLast

Similar Threads

  1. Questions!
    By Yellow-Snow in forum Mobile Impact
    Replies: 4
    Last Post: 06-10-2006, 05:18 PM
  2. iGuidance Font Size Fix summary thread
    By Viscouse in forum GPS
    Replies: 29
    Last Post: 03-28-2006, 06:21 PM
  3. Hot Chicks Thread - NOT WORK SAFE
    By ODYSSEY in forum Off Topic
    Replies: 1
    Last Post: 05-17-2005, 09:38 PM
  4. Replies: 3
    Last Post: 01-07-2004, 11:52 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •