November 2, 200718 yr 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
November 3, 200718 yr Moderator >> 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
November 3, 200718 yr 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
November 4, 200718 yr Author 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 FS RTWR SHRS F-111 JoinFS Little Navmap
November 4, 200718 yr Good job Roman The first code will do what I need. Thanks for the lesson. Paul Paul EGLD
November 5, 200718 yr Author X - C -lent! Glad it worked for you .Regards,Roman FS RTWR SHRS F-111 JoinFS Little Navmap
Create an account or sign in to comment