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.

Auto prop pitch gauge

Featured Replies

Hi,This is my first post - hope someone can help. I need an XML gauge to automatically set prop pitch to high whenever the flaps are in the zero (fully retracted) position. I've tried a few bits of code like:%(A:FLAPS HANDLE INDEX,number) 0 == %(>K:AXIS_PROPELLOR_SET=13763) %(>K:AXIS_PROPELLOR_SET=16384)%but no joy. It may be because the accompanying syntax is wrong.I'm new to XML, and would appreciate a bit of coaching!

  • Moderator
Hi,This is my first post - hope someone can help. I need an XML gauge to automatically set prop pitch to high whenever the flaps are in the zero (fully retracted) position. I've tried a few bits of code like:%(A:FLAPS HANDLE INDEX,number) 0 == %(>K:AXIS_PROPELLOR_SET=13763) %(>K:AXIS_PROPELLOR_SET=16384)%but no joy. It may be because the accompanying syntax is wrong.I'm new to XML, and would appreciate a bit of coaching!
First, this question really belongs in the "Aircraft and Panel Design" forum, because that's where XML gauge scripting is covered.Second, your syntax is completely incorrect:
(A:FLAPS HANDLE INDEX,number) 0 ==  	 if{ 16384 (>K:AXIS_PROPELLOR_SET)

XML scripting uses "Reverse Polish Notation" (RPN). The prototype for all conditional commands is:

(Condition) if{ (>K:DoSomething) }

In "normal forward notation" this is:

if (Condition) is TRUE then (>K:DoSomething)

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author

I told you I was new! Many thanks for your prompt response - I remember RPN now from college 100 years ago! I haven't made it work yet, but I've started my revision course.

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.