Jump to content

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

>> 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...