Another little tidbit of info to add:
My application wasn't terminating cleanly (I always had to do a CTRL-C to get my terminal back), then I realized that I needed to put in a sleep(0.1) right after my call to spnav_close in my termination logic. Not sure how/why this works, but it did.
Search found 4 matches
- Thu Mar 26, 2009 8:47 am
- Forum: Developer's Forum for UNIX and Linux
- Topic: How to use SpaceExplorer as Flight Controls to fly aircraft
- Replies: 7
- Views: 101438
- Wed Feb 25, 2009 7:20 am
- Forum: Developer's Forum for UNIX and Linux
- Topic: How to use SpaceExplorer as Flight Controls to fly aircraft
- Replies: 7
- Views: 101438
Just wanted to provide an update: I've decided to go with a nice prepackaged solution provided by nuclear, it's been working great: - no annoying X11 window to deal with - simple inteface, once you learn how to use it properly (study the API as defined in the .h file) - unplug the USB plug, then plu...
- Fri Feb 06, 2009 3:43 pm
- Forum: Developer's Forum for UNIX and Linux
- Topic: How to use SpaceExplorer as Flight Controls to fly aircraft
- Replies: 7
- Views: 101438
- Thu Feb 05, 2009 3:58 pm
- Forum: Developer's Forum for UNIX and Linux
- Topic: How to use SpaceExplorer as Flight Controls to fly aircraft
- Replies: 7
- Views: 101438
How to use SpaceExplorer as Flight Controls to fly aircraft
Hi, I would like some help in using the USB SpaceExplorer to fly my aircraft simulator running on RedHawk (RedHat) Linux. Ideally, I could find some example source code (C++) that has function calls that return the values of the 6dof SpaceExplorer cap, as well as the state of all the buttons. I woul...