Re: [Flightgear-devel] Joystick issue - peculiar

2007-03-12 Thread Nick Warne
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


Re: [Flightgear-devel] Joystick issue - peculiar

2007-03-11 Thread Nick Warne
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


Re: [Flightgear-devel] Joystick issue - peculiar

2007-03-10 Thread Stewart Andreason
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.
I don't think I can be of further help here.

Stewart



Nick Warne wrote:
> On Saturday 10 March 2007 18:00:45 Stewart Andreason wrote:
>> Can the dead band be increased?
>>
>> My own Thrustmaster joystick is less than consistant about the zero-center,
>> but not like you have described.
>>
>> I have not looked into fixing it myself, yet.
>>
>> Stewart
>>
>> 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


Re: [Flightgear-devel] Joystick issue - peculiar

2007-03-10 Thread Nick Warne
On Saturday 10 March 2007 18:00:45 Stewart Andreason wrote:
> Can the dead band be increased?
>
> My own Thrustmaster joystick is less than consistant about the zero-center,
> but not like you have described.
>
> I have not looked into fixing it myself, yet.
>
> Stewart
>
> 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


Re: [Flightgear-devel] Joystick issue - peculiar

2007-03-10 Thread Stewart Andreason
Can the dead band be increased?

My own Thrustmaster joystick is less than consistant about the zero-center, 
but not like you have described.

I have not looked into fixing it myself, yet.

Stewart

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
> 

-
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


[Flightgear-devel] Joystick issue - peculiar

2007-03-10 Thread Nick Warne
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

Plug in my USB Microsoft SideWinder Precision 2 Joystick:

Mar 10 13:03:46 linuxamd kernel: input: Microsoft SideWinder Precision 2 
Joystick as /class/input/input9
Mar 10 13:03:46 linuxamd kernel: input: USB HID v1.10 Joystick [Microsoft 
SideWinder Precision 2 Joystick] on usb-:00:07.3-2

Now, at this stage KDE joystick app reports everything is OK.  All axes, 
buttons etc. are 100% accurate.  Running jstest also reports the same.

Now, either running fgfs or js_demo, the joystick works great.  But after 
running either of these two apps, three joystick axes are now 'recalibrated':

X, Y and Z axes at 'rest' are all set to 337 *exactly*.  Running jstest also 
now reports X Y Z to be at 337:

Axes:  0:   337  1:   337  2:   337

If I now unplug the joystick, and plug it in again, then ALL axes and controls 
are all perfect again (i.e. X Y Z at rest are 0).

It was suggested maybe a hardware issue, but I don't think so as just X Y Z 
axes are set exactly to 337 after running FG.

Reading plib code, I see that the kernel deadband zone is written out as plib 
uses it's own - could this cause this strange issue?

BTW, it doesn't affect FG in anyway - '337' off 0 on a 65535 scale is 
unnoticeable in real life.

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