Board index FlightGear Development New features

Headtrack

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

Re: Headtrack

Postby SP-K79 » Sun Nov 08, 2015 6:02 pm

Thank you.

WOW that works great with Comet for FlightGear. I used "/sim/current-view/goal-heading-offset-deg" in the preferences, flight controls, rudder command line.

The only problem is it moves the view by just the smallest amount. Even though I bumped up the sensitivity in the Comet preferences. Is there a way to make this setup more sensitive in FG?
Hue Peter Coal
JAFVA, Vice President
"Never fly where you have not flown in your mind, five minutes age."
User avatar
SP-K79
 
Posts: 98
Joined: Wed Feb 04, 2015 9:23 pm
Callsign: SP-K79
Version: 3.2.0

Re: Headtrack

Postby falafel » Mon Jan 23, 2017 2:25 pm



it still works on fgfs 2016.4.3

Latest files on https://github.com/meirm/headtrack/tree/flightgear
falafel
 
Posts: 73
Joined: Mon Nov 09, 2009 11:42 am
Callsign: falafel
Version: 2
OS: Linux

Re: Headtrack

Postby adam_one » Mon Jan 23, 2017 8:56 pm

Any chance of making it work with FG 2017?
adam_one
 
Posts: 64
Joined: Tue Jan 05, 2016 3:41 pm
Version: alpha
OS: pirated

Re: Headtrack

Postby lehol » Thu Jan 26, 2017 7:52 pm

I tried to give it a go, but according to the install file, running the command "headtrack" gives the following error
Code: Select all
$ headtrack
OpenCV Error: Null pointer (NULL or empty buffer) in cvOpenFileStorage, file /build/opencv-SviWsf/opencv-2.4.9.1+dfsg/modules/core/src/persistence.cpp, line 2697
terminate called after throwing an instance of 'cv::Exception'
  what():  /build/opencv-SviWsf/opencv-2.4.9.1+dfsg/modules/core/src/persistence.cpp:2697: error: (-27) NULL or empty buffer in function cvOpenFileStorage

Aborted (core dumped)
)


Running the ./runme.sh starts the head tracking window and the white box is moving, but in FG th view is not moving,in the head tracking configuration settings enabled or not.
Code: Select all
./runme.sh
headtrack.c: Created socket. Destination = 127.0.0.1:49405!
libv4l2: error setting pixformat: Device or resource busy
HIGHGUI ERROR: libv4l unable to ioctl S_FMT
libv4l2: error setting pixformat: Device or resource busy
libv4l1: error setting pixformat: Device or resource busy
HIGHGUI ERROR: libv4l unable to ioctl VIDIOCSPICT

Sorry, cannot open camera.
OpenCV Error: Assertion failed (src.type() == dst.type()) in cvResize, file /build/opencv-SviWsf/opencv-2.4.9.1+dfsg/modules/imgproc/src/imgwarp.cpp, line 3937
terminate called after throwing an instance of 'cv::Exception'
  what():  /build/opencv-SviWsf/opencv-2.4.9.1+dfsg/modules/imgproc/src/imgwarp.cpp:3937: error: (-215) src.type() == dst.type() in function cvResize

./runme.sh: line 3: 16035 Aborted                 (core dumped)
lehol
 
Posts: 8
Joined: Thu Jan 24, 2013 1:38 am

Previous

Return to New features

Who is online

Users browsing this forum: No registered users and 3 guests