January 11, 201016 yr 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
January 12, 201016 yr 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
January 12, 201016 yr 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
January 12, 201016 yr 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 SlammerIt'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
January 13, 201016 yr 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
January 13, 201016 yr 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