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.

Momentary switches using XML

Featured Replies

hi,I'm working on a DC-9 project that requires momentary switches. The programming is being done entirely in XML.How can this type of switch be done?

If I understand you correct, you want to create a switch that automatically returns to it's original position? If so, here is complete gaugecode for a threeposition switch which is "springloaded" to center position; used to select which tank to gauge (its realistic, not fantasy btw :))(L:tank gauging,enum)(*selected tank*) (*main tanks*) (*aux tanks*) (P:Absolute time, seconds) (L:tankgauge timer,seconds) > if{ 0 (>L:tank gauging,enum) }Down for Main, Up for Aux, Center for Selected Tank2 (>L:tank gauging,enum) (P:Absolute time, seconds) 0.75 + (>L:tankgauge timer,seconds)1 (>L:tank gauging,enum) (P:Absolute time, seconds) 0.75 + (>L:tankgauge timer,seconds)If only an on/off position is used however, you can simplify the gauge by checking the (in this case) (L:tankgauge timer,seconds) against (P:Absolute time,seconds) where you select which graphics to use, and get rid of the "set to zero" function as seen in the lower "element" above.

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.