I have finished working the bugs out of my "Enhanced" version of the Magic 
Carpet FDM.  The UFO FDM works the same as the Magic Carpet with the 
following exceptions:

The aircraft's pitch is determined by the Elevator setting (with a pitch 
rate of 45 degrees per second).
Climb is forward velocity * sin(pitch)
Speed is forward velocity * soc(pitch)

Roll is tied to the aileron (again, with a roll rate of 45 degrees per 
second)
Turn rate is sin(roll) * 45 degrees.

Yes, this does mean that turning is quite a bit more sluggish than 
climbing.  To add the FDM, download both 'ufo.hxx' and 'ufo.cxx' from:

http://homepage.mac.com/eq_fidget/FileSharing1.html

and place them in the FDM directory.  Then make the following additions to 
Main/fg_init.cxx, in the same area as the MagicCarpet:

#include <FDM/MagicCarpet.hxx>
#include <FDM/UFO.hxx>  // ADDED

...

        } else if (model == "magic") {
            cur_fdm_state = new FGMagicCarpet( dt );
        } else if (model == "ufo") {          // ADDED
            cur_fdm_state = new FGUFO( dt );  // ADDED

Finally, you can fly the UFO by using the '--fdm=ufo' command line option.
   I had a rather bad jitter problem with pitch and roll, but that has been 
fixed (but in a VERY UGLY way).

If you are wondering why a UFO FDM, it is because it's best that I not 
replace the existing magic carpet and this FDM does behave like a UFO (it 
hovers, can spin and pitch while hovering, and does not obey the laws of 
physics ;)

Jonathan Polley

p.s.  The tower view looks really nice!


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to