* Fridtjof Busse -- Wednesday 30 March 2005 11:46:
> I'm trying to use fgjs to "calibrate" my joystick [...]

You put "calibrate" under quotes. So you know that fgjs doesn't calibrate
anything? For calibrating use jscal. If you don't have it and your distribution
doesn't offer a package for it, go to http://sourceforge.net/cvs/?group_id=3063,
check out the "ruby" module, and find jscal in ruby/utils/. This is from the
author of the Linux kernel joystick system. (There's another calibration utility
based on xml that you better try to avoid. I haven't heard much positive about
it. Nothing, actually.)



> The joystick itself works fine, but I'd still like to use fgjs.
> 
> $ js_demo 
[...]
> +--------------------JS.0----------------------+
> | Btns Ax:0 Ax:1 Ax:2 Ax:3 Ax:4 Ax:5 Ax:6 Ax:7 Ax:8 Ax:9 Ax:10 |
> +----------------------------------------------+
> | 1000000 -0.0 -0.0 +1.0 +0.0 +0.0 +0.0 +1.0 +0.0 +0.0 +0.1 +0.1 |
[...]
> Anything I can do to fix this?

Yes, calibrate the joystick. And forget fgjs, which is IMHO only useful to get
at least rudimentary support in fgfs from unsupported joysticks. Better take an
existing configuration file ($FG_ROOT/Inpur/Joysticks/), make a copy where you
set the correct name (as reported by fg_demo), adapt the axes and buttons if
necessary, and then add a line for this file $FG_ROOT/joysticks.xml. Then check
with this line if fgfs finds the joystick:

  $ fgfs --log-level=info 2>&1|awk '!/^  /{i=0}/^Looking 
for/{i=1}//{if(i)print}'

m.

_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to