Hello, Falafel!
falafel wrote in Mon Mar 21, 2011 11:31 am:I think that we should work on setting a common api with fgfs and letting the user decide which headtracking driver to use.
This is equivalent to usage of joystick, where we have the user not involved with picking the right joystick setup.
* We should use a generic path. Something like /sim/headtracking/...
* The user will just set the prop of which driver to use: easy-headtrack/linux-track/...
* According to the prop fgfs will load the proper nas file and if necessary a different protocol xml file.
The general rule should be to make the solutions generic.
Good thoughts, I'm agree with you. I don't see any reasons for it to be not generic. I've tried to use slightly modified linux-track.xml protocol file, compatible with easy-headtrack nasal script, and it works fine.
falafel wrote in Mon Mar 21, 2011 11:31 am:What are the features given by linux-track and how do they compare to other existing solutions?
For instance, Linux-track could be one answer for users using 32bit OS, but at this point according to your wiki, it doesn't fill the bill for 64 bit OS.
As Michal has already told, linux-track uses LEDs. For instance, I usualy fly at a dark evening time and in almost completely dark room. So easy-headtrack is probably not a solution for me at that time. But sometimes (on weekends) I fly at a day. And as I haven't removed IR filter from my camera, so my camera works unreliable with LEDs at a day-time. That's time for easy-headtracker
Features of linux-track:
* GUI. It's pretty helpfull for configuring and testing.
* Profiles. One can create many different profiles for different setups.
* It's a library with easy API. You can easily create addons for other software.
* Targeted to run on Linux and Mac.
And yes, I run it on a 64bit OS.
So both solutions will find their users. And a generic approach would be a great plus.
EDIT: Currently ltr_fgfs uses its Nasal script for two reasons: to smoothe movements and to enable/disable processing of X, Y, Z. Easy-headtrack's Nasal script interacts with your FlightGear headtracking dialog settings. As you've advanced more in your Nasal sctipt I don't see any reasons to complicate linux-track script. I'm just going to add an option to ltr_fgfs to send data in easy-headtrack format. Hoping that format isn't going to change in the future. That would be the most easy way for users to use easy-headtrack achievements also with linux-track.
And I'm going to change ltr_fgfs name to ltr_pipe as it becomes not only FlightGear specific, and now it also can send data to IL-2 Shturmovik. Hoping soon, when I'll do some Mac specific adjustments, Michal would give his OK for including ltr_pipe to the linux-track repository trunk.
Thanks.