Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

xml synthax question

Featured Replies

Hi,Can someone explain the following:(L:parameter one,enum) ~ & s1 if{ l1 (>L:parameter two,enum) } and(l1 1 & ) if{ ....Thanks,Jan"Beatus Ille Procul Negotiis"

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Jan,The l1 and s1 commands load and save the figure on top of the stack to register 1 - the ~ is a bitwise not so the ~ after the (L:parameter one, enum) will reverse the ones and zeros in the binary representation of the value. e.g.(L:parameter one, enum) = 55 = 110111 ~ 001000Then you have a bitwise and which will occur on the (L:parameter one, enum) and its ~ version 110111& 001000-------- 000000so in this case l1 would not be loaded into parameter 2.Hope that makes sense and anyone please correct me if i'm wrong!Cheers,

  • Author

Paul,Is there a way to write this in "normal" xml?I mean not using the bitwise commands.s1 and l1 are familiar to me, but ~ isn't.Is it a command like (L:var,bool) ! if{ ..etc.; and why using this one?Can you write it like:(L:parameter one,enum) 0 == if{ 0 (>L:parameter two,enum) } Jan"Beatus Ille Procul Negotiis"

Jan

 

 

 

"Beatus ille qui procul negotiis..."

jan,! is a logical not so the result would be different - In a logical not if the parameter is non-zero the result will be zero. If it is zero the result will be 1.Consider;Decimal 5 ! = 0Decimal 5 ~ = 2 because with the ~ it is literally swapping the ones in the binary of the number. In binary, the above ~ example would be;Decimal 5 = Binary 101 ~ = 010 = Decimal 2Does that make sense?Cheers,

  • Author

It does Paul, but still i would like a more easier way to note the xml.I can use the code, but don't understand it totally.It is from the master caution gauge of the default B747.The switch is standalone, the code is in the MFD.May be you could have a look.It uses (..,mask) instead of enum, but that doesn't make a difference.Jan"Beatus Ille Procul Negotiis"

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Jan,I had a quick look - there is bitwise operators all through that string line - my guess is they are using a binary number to store all the warnings - each bit of the binary number refering to a different warning .I would probably look at another way of doing it in plain xml rather than translating theirs.Sorry I can't be more help!

  • Author

Paul,Thanks fot the effort,Jan"Beatus Ille Procul Negotiis"

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.