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.

Gauge variable help please

Featured Replies

Here's the variable I'm working on. It returns the current heading just fine, but what I'd like is for it to always return the reciprocal heading. For example, if I'm flying a heading of 90, I would like this gauge to show me "270", the reciprocal. Here's my current string from the gauge element in question:%((A:PLANE HEADING DEGREES GYRO,degrees))%!03d!Any ideas are welcome. Thanks.

  • Commercial Member

Add 180, then the string becomes:%((A:PLANE HEADING DEGREES GYRO,degrees) abs 180 +)%!03d!The ABS is to make sure that an absolute value is given.

Good Day,

Engjell Berisha

 

Angel-Simulations-Small.png

Add 180, then the string becomes:%((A:PLANE HEADING DEGREES GYRO,degrees) abs 180 +)%!03d!The ABS is to make sure that an absolute value is given.
Remember to normalize it too.. HDG 350 + 180 = 530 normalize will make it 170%((A:PLANE HEADING DEGREES GYRO,degrees) abs 180 + dnor)%!03d!Roman

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

 

  • Author

Thanks to both of you. :(

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.