Board index FlightGear Development New features

Joystick conf for opentrack headtracker

Discussion and requests for new features. Please note that FlightGear developers are volunteers and may or may not be able to consider these requests.

Joystick conf for opentrack headtracker

Postby paju1986 » Sun Mar 22, 2020 9:51 pm

Hello.

Since opentrack was not working very nicely with Flightgear with 6DoF because it didn't have into account the offset of the current camera view for the axis, i made a custom joystick configuration for it with some nasal code to make it work correctly out of the box!!

the script has to be placed on ~/.fgfs/Input/Joysticks/ on LInux (I dont know the routes on Windows or Mac).

Make sure you are using the libevdev driver on Opentrack for this to work!

All 6DoF axis are working now, no more thinkering with the offsets on every plane!

https://spee.ch/4/opentrack-headpose.xml

Enjoy!!
paju1986
 
Posts: 241
Joined: Sun Oct 30, 2011 7:42 pm
Location: Badajoz (Spain) - LEBZ
OS: Arch Linux

Re: Joystick conf for opentrack headtracker

Postby massima » Mon Mar 23, 2020 10:57 am

Great job, opentrack is powerful. Talking about it i finally get hatire working with my MPU9250, i'll post soon something
User avatar
massima
 
Posts: 251
Joined: Sat Jan 03, 2015 6:48 pm
Location: Italy
Callsign: M-AXX
Version: 2020.1.3
OS: debian testing

Re: Joystick conf for opentrack headtracker

Postby paju1986 » Mon Mar 23, 2020 7:06 pm

Version 2.
Fix for the case when you dont have any other joystick attach.

https://drive.google.com/open?id=1MYHgAcBRSRQgFzv_D4Dh-sIDmNINX2e8
paju1986
 
Posts: 241
Joined: Sun Oct 30, 2011 7:42 pm
Location: Badajoz (Spain) - LEBZ
OS: Arch Linux

Re: Joystick conf for opentrack headtracker

Postby Johan G » Mon Mar 23, 2020 9:34 pm

You might want to post it on the developer mailing list so that it can be included in FlightGear rather than getting lost and forgotten. :wink:
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Johan G
Moderator
 
Posts: 5791
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 3.0.0
OS: Windows 7, 32 bit

Re: Joystick conf for opentrack headtracker

Postby paju1986 » Tue Mar 24, 2020 10:48 am

Done.
paju1986
 
Posts: 241
Joined: Sun Oct 30, 2011 7:42 pm
Location: Badajoz (Spain) - LEBZ
OS: Arch Linux


Return to New features

Who is online

Users browsing this forum: No registered users and 1 guest