On Thursday 28 June 2007 19:50, woodyst wrote: > With my yoke stopped, with js_demo i see a lot of lines as: > | 0000 -0.0 +0.1 +1.0 -1.0 -1.0 +0.0 +0.0 . | > > all of them without changes.
Since it only shows one decimal digit, a change of 0.002 would not be shown in js_demo. > > So autopilot may change axis values (because my yoke is not noisy) and > this difference (position 0 of yoke and autopilot setting) may be greater > than a.tolerance, so it vibrates (I think, correct me if it is not > correct). I think you have misunderstood how input.cxx works. It does not look at the difference between the joystick position and the autopilot stick position. It looks at the joystick position from the previous sample and if the joystick hasn't moved more than tolerance, then its new position is not applied. You could hold the joystick in the full right position, far away from the position that the autopilot wants the stick to be in. But if you can hold it still there then input.cxx will not update the position and the joystick will not fight with the autopilot. > > > No, it is not noisy. I have tested it with utils and found that my yoke > > > is very quiet. I think my previous afirmation may be correct. > > > > Very quiet might not be quiet enough. If the noise is more than the > > tolerance value hardcoded into input.cxx (0.002) then you will see what > > you are seeing. > > When I do not touch my yoke it does not pass any event. So there may be > another problem with it. Please probe it by your own keeping your > joystick stopped > (test it with js_demo or something similar). You will see what is my > problem. I have actually seen the problem. My joystick (Thrustmaster® Top GunTM Fox 2 ProTM USB) is actually quiet enough that when it sits on my table untouched in the center position, it does not fight with the autopilot. If I bump the table, jump up and down on the floor, listen to loud crappy music, etc. then it will vibrate, and it will fight with the autopilot. _I_ am still convinced that your joystick is more noisy than the tolerance limit in input.cxx. I have a few suggestions you could try: - If the joystick driver has a dead zone option try that. - Try setting the tolerance limit in input.cxx to a higher value. - Remove the noise from your joystick: clean or replace the pots. -- Roy Vegard Ovesen ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel