Hi Stewart,

On Sunday 11 March 2007 15:33:17 Stewart Andreason wrote:
> Hi Nick,
>
> I had forgotten about the jstest utility.
>
> Ok, it does give the range from -32767 to 32767.
>
> And my joystick does warble on axis 1:
> 337, 675, 337, 0, 337, 1013, 337, 0, 337 etc.
>
> I think the answer to your question is, that 337 is the smallest
> sensitivity or level of precision.
> It is a normal hardware issue.
>
> 32767 divide by 100 = 328
> 32767 / 337 = 97.2 (not an exact coorelation, I admit)
>
> Thus, make sure a dead-band is set that covers 1 to 4 % of the axis.

Yes, that makes sense indeed - and in IRC yesterday and with the help of 
Melchior, we found the solution.

For some reason, although when I plug in my JS it all reads 'spot on' it 
really isn't.  Running jscal and calibrating the JS then makes it all work 
perfectly in js_demo and FG.  So perhaps as nothing has used the JS when I 
plug it in, it doesn't show up as being out of calibration.

I also stated that it doesn't affect FG - well, I lied :-)  It did do and I 
didn't notice.  I was always fighting the JS a little in keeping the aircraft 
straight/level etc., but now it is not so imposing and I can fly better with 
less effect!

Also, by using the -p option of jscal, it produces commandline data that can 
be read back with the -s option, so all I need do is run that little script 
at startx (or when I plug my JS in) for it to be sorted.

So resolved!

Thanks for interest and help.

Nick

> Nick Warne wrote:
> > 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.
> >
> >>> 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