Board index FlightGear Support Hardware

how to calibrate fsgs headtracker video options in linux?

Joysticks, pedals, monitors.

how to calibrate fsgs headtracker video options in linux?

Postby backspin » Wed May 04, 2022 7:44 pm

I'm trying to tune my delanclip headtracker so it works better with flightgear on linux. Delanclip provides a tutorial video:
https://www.youtube.com/watch?v=XHuNIzBmnSk&t=7s
showing how to tune two webcam video options:
1. the blackness of the background
2. the roundness of the LED lights, as they appear in the webcam output video
These video options are in a Windows PS3 webcamdevice driver/app called "CL-Eye Test"
as described in the Delanclip online manual here:
https://delanengineering.com/manual/

How can I adjust the background blackness and the LED light roundness on linux, where I don't have the "CL-Eye Test" device driver/calibration app? (Or should I try to run CL-Eye Test on linux using the wine windows emulation layer?)

Also, how do I set permission so I can run opentrack without using sudo, which saves my ini files under /root?
Thanks!

P.S. Below are the commands I used to install opentrack and the flightgear headtracker plugin. I am using Ubuntu 22.04 LTS
I don't have this

This video shows how to calibrate the webcam

git clone https://github.com/opentrack/opentrack
sudo apt install -y cmake git qttools5-dev qtbase5-private-dev libprocps-dev libopencv-dev g++
cd opentrack
cmake .
make
sudo make install
svn checkout https://svn.code.sf.net/p/flightgear/fg ... eadtracker
follow delanclip calibration instructions here:
https://delanengineering.com/manual/
copy delanclip .ini files to opentrack
sudo cp *.ini /root/.config/opentrack-2.3
sudo opentrack
fgfs --addon=/home/main/Headtracker --generic=socket,in,25,127.0.0.1,5542,udp,opentrack
backspin
 
Posts: 11
Joined: Mon Nov 30, 2020 11:03 pm

Re: how to calibrate fsgs headtracker video options in linux

Postby TheEagle » Thu May 05, 2022 12:56 am

backspin wrote in Wed May 04, 2022 7:44 pm:(Or should I try to run CL-Eye Test on linux using the wine windows emulation layer?)

Why not give it a try ? But - do you also have Windows installed, because in that case you could simply configure on Windows and copy the file over to Linux.
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: how to calibrate fsgs headtracker video options in linux

Postby wkitty42 » Thu May 05, 2022 9:01 am

backspin wrote in Wed May 04, 2022 7:44 pm:P.S. Below are the commands I used to install opentrack and the flightgear headtracker plugin. I am using Ubuntu 22.04 LTS
I don't have this

you don't have what?

backspin wrote in Wed May 04, 2022 7:44 pm:This video shows how to calibrate the webcam

no video...

backspin wrote in Wed May 04, 2022 7:44 pm:git clone https://github.com/opentrack/opentrack
sudo apt install -y cmake git qttools5-dev qtbase5-private-dev libprocps-dev libopencv-dev g++
cd opentrack
cmake .
make
sudo make install

at this point, opentrack should be installed system wide for all users to use... not just root...

backspin wrote in Wed May 04, 2022 7:44 pm:svn checkout https://svn.code.sf.net/p/flightgear/fg ... eadtracker
follow delanclip calibration instructions here:
https://delanengineering.com/manual/
copy delanclip .ini files to opentrack
sudo cp *.ini /root/.config/opentrack-2.3

ok... but why are you copying them to root's .config directory instead of to your user's directory? this is why you are having to use sudo to run headtrack... copy those ini files to your user .config directory and it should work...

backspin wrote in Wed May 04, 2022 7:44 pm:sudo opentrack

then you should be able to do this without sudo... but i've never messed with any of this headtracking stuff so i'm not aware of all nuances... if the headtracking stuff is trying to open some network ports less then 1024, then yes, it needs sudo or explicit access permissions granted to it...

backspin wrote in Wed May 04, 2022 7:44 pm:fgfs --addon=/home/main/Headtracker --generic=socket,in,25,127.0.0.1,5542,udp,opentrack

but looking at this line, it doesn't appear that any port less then 1024 is needed so i'm a little lost as to why you are copying the files to root and running it as root...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04


Return to Hardware

Who is online

Users browsing this forum: No registered users and 2 guests