Anyone has tested this patch? Isn't it interesting? Have I done something wrong?
Thanks. 2007/6/14, woodyst <[EMAIL PROTECTED]>: > Hello friends: > > My name is Eduardo García-Mádico Portabella and I am from Spain, so > English is not my native Language. > > I posted some months ago an email because my yoke made interferences > with autopilot because its lack of force feedback. You may remember that > I exposed the problem that, as in a real plane autopilot moves the yoke, > a joystick without force feedback remains in central position while the > ap is enabled. > > Then, when autopilot starts controlling the virtual yoke, it produces > the quickly alternation of the virtual yoke with the position of the > real joke/joystick of the computer. > > This problem makes the autopilot less realistic and it looses precision. > > I have made some changes to the code that provides the autopilot the > ability to get total control of the axis when it is enabled, so when you > move the joystick with the autopilot enabled, the virtual yoke in the > plain does not obey the joystick movement. > > I do not program too much, and I almost never program in C++, so the code > quality may be horrible, but this patch works for me. > > These things probably can be done better and I wish a better code. If > anyone does it in a better way I would be very grateful. > > The diffs are at http://www.eurogaran.com/fgfs/fgfs_ap_joy_locking.diff and > http://www.eurogaran.com/fgfs/kap140_locking_controls_capable.diff > > If it could be added to the oficial code I would apreciate it very much. > > There are two patches, first for the fgfs tree and changes controls.cxx > and input.cxx, and the other for the kap140.nas for making it capable of > locking. Both patches are for FlightGear-0.9.11-pre1 (sorry, I had > problems with cvs version, so I tested it here). > > I created locking properties for all the controls in controls.cxx. I did > that because I think the better autopilot you could do is the one that > does not need a pilot. It will permit people adding these functionality > to other more advanced autopilots. > > For adding this functionality to other autopilots than the kap140, see > the nas code. It's easy because it's integrated in the property tree. > > Thanks in advance. > > -- > Woodyst. > -- Woodyst. ------------------------------------------------------------------------- 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