Jump to content
Sign in to follow this  
Slammer

Digital readout rotation

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...