Sign in to follow this  
phjvh

Pitch Limiter in XML

Recommended Posts

I have developed this simple XML code (see below) to implement a pitch limiter in FS2k2. The idea is to detect FD pitch angle greater than or equal 10 degrees (for example). And if this is the case, then the attitude hold mode goes on. It doesn't want to work though. Can someone tell if the parameters and events in the code are correct for this ? Or, in general, what is wrong with this code ?- - - (A:AUTOPILOT FLIGHT DIRECTOR PITCH, degree) 10 >= if{ 1 (>K:KEY_AP_ATT_HOLD_ON) 0 (>K:KEY_AP_ATT_HOLD_OFF)} els { 0 (>K:KEY_AP_ATT_HOLD_ON) 1 (>K:KEY_AP_ATT_HOLD_OFF)}Thanks

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi,Try (didn't test it): (A:ATTITUDE INDICATOR PITCH DEGREES, degrees) 10 >= if{ (>K:AP_ATT_HOLD_ON) } els{ 0 (>K:AP_ATT_HOLD_OFF) } Instead of (A:ATTITUDE INDICATOR PITCH DEGREES, degrees) you can use your (A:AUTOPILOT FLIGHT DIRECTOR PITCH, degrees)Jan"Procul Negotiis"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this