Archived

This topic is now archived and is closed to further replies.

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
Help AVSIM continue to serve you!
Please donate today!

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>

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.

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.

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