[pkg-fgfs-crew] Bug#574847: flightgear: Problem with fgjs

Torquil Macdonald Sørensen torquil at gmail.com
Sun Mar 21 16:55:54 UTC 2010


Package: flightgear
Version: 1.9.1-1.1
Severity: normal

Hi!

fgjs doesn't seem to work properly for me. I use an E_Sky 0905A flight
controller (USB) with two sticks and no buttons.

I tried "jstest" from the "joystick" package. It reports five axes and three
buttons, although i have no buttons and onle four axes actually change values
when I move the two controller sticks around. Axis 3 is inactive all the time. Here
is some sample output from "jstest":

root at asus:/dev/input# jstest js0
Driver version is 2.1.0.
Joystick (ADC) has 5 axes (X, Y, Z, Rx, Ry)
and 3 buttons (Trigger, ThumbBtn, ThumbBtn2).
Testing ... (interrupt to exit)
Axes:  0:     0  1:     0  2:     0  3:     0  4:     0 Buttons:  0:off  1:off  2:off


The controller works within flightgear but all the directions are reversed. That's
why I'm trying fgjs.

The program "js_demo" works fine and reports the changes on the axes 0,1,2,4 fine as
I move the sticks. Here is what the output from js_test looks like:

Joystick test program.
~~~~~~~~~~~~~~~~~~~~~~
Joystick 0: "ADC"
Joystick 1 not detected
Joystick 2 not detected
Joystick 3 not detected
Joystick 4 not detected
Joystick 5 not detected
Joystick 6 not detected
Joystick 7 not detected
+--------------------JS.0----------------------+
| Btns Ax:0 Ax:1 Ax:2 Ax:3 Ax:4                |
+----------------------------------------------+
^C0000 -0.1 +0.1 +0.5 +0.0 -0.1   .    .    .  |



The problem is "fgjs". The first part regarding "dead-band" works fine, and it then
goes on the ask about assignment. It asks me to move the axis corresponding to
aileron (right). When I do this nothing happens. It also says that if I push a button 
this assignment will be skipped. But I don't have any buttons on my controller, and
keyboard/mouse actions doen't seem to have any effect (apart from CTRL-c of course).

But, if I move the stick vertically (corresponding to elevator), then fgjs reacts
immediately and asks if I want that axis assigned to the ailerons, which of course
I don't want to. So I'm not able to assign the horisontal movement of the right-hand
stick to the aileron. On the other hand, the values displayed by js_demo are changing
continuously for all four axes (0,1,2,4) when I move the sticks on my USB controller.

The strange this was, one of the many times I tried fgjs, I experienced the opposite problem.
The ailerons were easily assigned as soon as I moved the stick horizontally, but in that case
fgjs did not react at all when it asked for the elevator assignement...

Best regards
Torquil Sørensen

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages flightgear depends on:
ii  fgfs-base               1.9.0-1          Flight Gear Flight Simulator -- ba
ii  freeglut3               2.4.0-9          OpenGL Utility Toolkit
ii  libalut0                1.1.0-2          OpenAL Utility Toolkit
ii  libc6                   2.10.2-6         Embedded GNU C Library: Shared lib
ii  libgcc1                 1:4.4.3-3        GCC support library
ii  libgl1-mesa-glx [libgl1 7.7-4            A free implementation of the OpenG
ii  libglu1-mesa [libglu1]  7.7-4            The OpenGL utility library (GLU)
ii  libice6                 2:1.0.6-1        X11 Inter-Client Exchange library
ii  libjpeg62               6b-16.1          The Independent JPEG Group's JPEG 
ii  libopenal1              1:1.11.753-1     Software implementation of the Ope
ii  libopenscenegraph56     2.8.2-2          low level graphics library for ope
ii  libopenthreads12        2.8.2-2          Object-Oriented (OO) thread interf
ii  libplib1                1.8.5-5          Portability Libraries: Run-time pa
ii  libsm6                  2:1.1.1-1        X11 Session Management library
ii  libstdc++6              4.4.3-3          The GNU Standard C++ Library v3
ii  libx11-6                2:1.3.3-2        X11 client-side library
ii  libxext6                2:1.1.1-3        X11 miscellaneous extension librar
ii  libxi6                  2:1.3-4          X11 Input extension library
ii  libxmu6                 2:1.0.5-1        X11 miscellaneous utility library
ii  libxt6                  1:1.0.7-1        X11 toolkit intrinsics library
ii  simgear1.9.1            1.9.1-2          Simulator Construction Gear -- sha
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

flightgear recommends no packages.

flightgear suggests no packages.

-- no debconf information





More information about the pkg-fgfs-crew mailing list