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.

Digital readout rotation

Featured Replies

Hello guys,Is it possible to rotate a digital output of a radio channel gauge 90 degrees clockwise? I've looked into GaugeText Objects of the SDK and tried DegreesPointsTo and PointsTo together with an axis statement but failed. Actually I don't know where to put it in the element.Can anybody help me, or is it impossible!Here's the code<Gauge Name="UHF-CH" Version="1.0"> <Size X="23" Y="27"/> <Update Frequency="6"/> <Element> <Visible>(A:Circuit general panel on, bool)</Visible> <Axis X="11" Y="13"/> <Text X="23" Y="27" Bright="Yes" Length="2" Font="Quartz" Bold="Yes" Color="yellowgreen" Adjust="center" VerticalAdjust="center" DegreesPointsTo="90"> <String>%((L:UHF-CH,enum))%!02d!</String> </Text> </Element> </Gauge>Greets Slammer

Try<Element><Visible>(A:Circuit general panel on, bool)</Visible><Axis X="11" Y="13"/><Text X="23" Y="27" Bright="Yes" Length="2" Font="Quartz" Bold="Yes" Color="yellowgreen" Adjust="center" VerticalAdjust="center"><String>%((L:UHF-CH,enum))%!02d!</String></Text><Rotate> <Value> Your value n </Value> </Rotate></Element>

Paul EGLD

  • Author

PVE,Thanks a lot for your help. It works perfect. It only cost a lot of time to figure out which value to use. In the end to turn the gauge 90 degrees CW i had to use the value 1.55 ??? :( I don't understand why certain things like this are not mentioned in the SDK, they force you to use PointsTo or PointsToDegrees????Anyway it works!Thanks Slammer

PVE,Thanks a lot for your help. It works perfect. It only cost a lot of time to figure out which value to use. In the end to turn the gauge 90 degrees CW i had to use the value 1.55 ??? :( I don't understand why certain things like this are not mentioned in the SDK, they force you to use PointsTo or PointsToDegrees????Anyway it works!Thanks Slammer
It's all part of the learning curve.The value you entered was radians the default value for angles. ie. 1.55 radians = 88.80849 degrees.

Paul EGLD

  • Author

Paul,Thanks for that, indeed learning all the time :( Ed

  • Moderator
I don't understand why certain things like this are not mentioned in the SDK, they force you to use PointsTo or PointsToDegrees????
Actually, it is mentioned in the SDK.The PointsTo and PointsToDegrees flags are only applicable to bitmap rotation.Anything that is "vector drawn," which includes <String> data, requires <Shift> and/or <Rotate> flags.

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author

Bill,Thank you for explaining. It makes sense, now i know where to look for in the future. Still learning.Greetz Ed

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.