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 10: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: 246
Joined: Sun Oct 30, 2011 8:42 pm
Location: Badajoz (Spain) - LEBZ
OS: Arch Linux

Re: Joystick conf for opentrack headtracker

Postby massima » Mon Mar 23, 2020 11: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: 264
Joined: Sat Jan 03, 2015 7:48 pm
Location: Italy
Callsign: M-AXX
Version: 2020.4.0
OS: debian testing

Re: Joystick conf for opentrack headtracker

Postby paju1986 » Mon Mar 23, 2020 8: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: 246
Joined: Sun Oct 30, 2011 8:42 pm
Location: Badajoz (Spain) - LEBZ
OS: Arch Linux

Re: Joystick conf for opentrack headtracker

Postby Johan G » Mon Mar 23, 2020 10: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)
Some YouTube videos
Johan G
Moderator
 
Posts: 6629
Joined: Fri Aug 06, 2010 6:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit

Re: Joystick conf for opentrack headtracker

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

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


Return to New features

Who is online

Users browsing this forum: Cyber_Gamer and 7 guests