Sign in to follow this  
spokes2112

INCREASE_AUTOBRAKE_CONTROL XML FS9

Recommended Posts

Hi all (A:Auto brake switch cb, enum) ++ d 5 <= * d 5 min (>K:INCREASE_AUTOBRAKE_CONTROL) I thought this might increase the auto brake to max (5) with one click but no. Can anyone help

Share this post


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

>> Hi all>> (A:Auto brake switch cb, enum) ++ d 5 <= * d 5>min (>K:INCREASE_AUTOBRAKE_CONTROL)>> I thought this might increase the auto brake to max (5)>with one click but no. Can anyone help5 (>K:INCREASE_AUTOBRAKE_CONTROL)

Share this post


Link to post
Share on other sites

Hi Bill It will not work in a click, but this does. (L:AntiSkid,bool) if{ (A:Auto brake switch cb, enum) ++ (>K:INCREASE_AUTOBRAKE_CONTROL)} els{ (>K:DECREASE_AUTOBRAKE_CONTROL) } It will only switch from max to min (5 to 0) can't stop it at 1.

Share this post


Link to post
Share on other sites

Your probably not done with the code but in your above case the vars are going to keep firing all the time. Maybe try this:(L:AntiSkid,bool) if{ (A:Auto brake switch cb, enum) 5 != if{ (>K:INCREASE_AUTOBRAKE_CONTROL) } } els{ (A:Auto brake switch cb, enum) 1 != if{ (>K:DECREASE_AUTOBRAKE_CONTROL) } }But having this in an element would require more code if your aircraft has both A-skid and A-Brake (737-400 for instance). It would probably be better to put this into a click and macro for the A-skid function that way it wouldn't override the A-brake function. (L:AntiSkid,bool) if{ (>K:INCREASE_AUTOBRAKE_CONTROL) (>K:INCREASE_AUTOBRAKE_CONTROL) (>K:INCREASE_AUTOBRAKE_CONTROL) (>K:INCREASE_AUTOBRAKE_CONTROL) (>K:INCREASE_AUTOBRAKE_CONTROL) } els{ (>K:DECREASE_AUTOBRAKE_CONTROL) (>K:DECREASE_AUTOBRAKE_CONTROL) (>K:DECREASE_AUTOBRAKE_CONTROL) (>K:DECREASE_AUTOBRAKE_CONTROL) }(L:AntiSkid,bool) ! (>L:AntiSkid,bool) @AntiSkid0 (>L:AntiSkid,bool)(>K:INCREASE_AUTOBRAKE_CONTROL)0 (>L:AntiSkid,bool)(>K:DECREASE_AUTOBRAKE_CONTROL)That should get it to stop at 1 when A-Skid is off & not fire all the time. BTW i haven't tested or have done XML in a long time so the syntax may be wrong " != " for instance.Regards,Roman

Share this post


Link to post
Share on other sites

Good job Roman The first code will do what I need. Thanks for the lesson. Paul

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