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


Paul EGLD

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)


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

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.


Paul EGLD

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


20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

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


Paul EGLD

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...