On Saturday 10 March 2007 19:14:44 Stewart Andreason wrote:
> When I run js_demo, I get a number from -1.0 to 0.0 to 1.0
> Where is this level of precision set?
>
> Ah ha!
> I had no dead-band set in my joystick-name-here-or-js0.xml
>
> Nick, can you find which joystick.xml file it is using? Perhaps looking
> thru it will help.

OK, this isn't FG xml issue.  js_demo reports correct (-1.0 <-> 1.0 etc.)  But 
as soon as I either start js_demo or fgfs, when I check joystick in KDE or 
use the jstest utilty, X Y Z at rest are set to '337'.  So something 
recalibrates the stick to that.

This is what I meant about the deadband stuff from plib:

plib-1.8.4/src/js/jsLinux.cxx 

[sic]
  // Remove any deadband value already done in the kernel.
  // Since we have our own deadband management this is save to do so.


So I am wondered if kernel sets up the joystick correctly - then plib decides 
the deadband is wrong and changes/removes it somewhat.

I don't know.

Nick

> >> Nick Warne wrote:
> >>> Hi all,
> >>>
> >>> This is _not_ a bug report, nor perhaps FG specific, but rather a
> >>> discussion of a joystick issue I see - now I have seen this, it is like
> >>> when you get a little stone in your shoe, but no matter how much you
> >>> look, you can't find the bugger - but because you know it's there, you
> >>> can't stop thinking about it :-D
> >
> > Well, I dunno if it is deadband.  What causes the X Y Z axes to
> > recalibrate to '337' after runing fgfs or js_demo on an otherwise OK
> > joystick X Y Z of '0'?
> >
> > Why 337?  I am stumped.
> >
> > Nick



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to