Since I spend most of my FlightGear time using the Magic Carpet FDM, I 
decided to make some minor tweaks.  I have added the ability of the FDM to 
change its pitch and roll.  This way the carpet behaves like Disney 
intended ;)

Instead of the elevator causing a direct change in altitude, it now causes 
a pitch rate.  The altitude change is now sin(pitch)*forward_velocity and 
the speed is now cos(pitch)*forward_velocity (this way a climb of 90 
degrees will remove the forward component).  Pitch is capped at 90 degrees 
because I am lazy and didn't want to worry about adjusting the numbers for 
when you try a loop.  The aileron determines the roll rate, which feeds 
into the new heading.  As with pitch, roll is capped at 90 degrees (barrel 
rolls are fun, but do require some math).  Turn_rate is now sin(roll)*pi/4 
radians per second.


The updated file can be found at:

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

A screen shot can be found at:

http://homepage.mac.com/eq_fidget/MagicCarpet.png


Give it a try and let me know what you think.

Jonathan Polley

p.s.  I just use the keyboard, so I haven't a clue how well the rates work 
for a joystick.


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

Reply via email to