Archived

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

phjvh

Cessna Citation AOA gauge

Recommended Posts

Hello guys,I'm afraid i got a bit lost on the citation AOA gauge. This particular gauge is a 'clock style' gauge. The scale goes from 0 (which is an angle of attack of 0) to 1, which is an angle of attack of 17 degrees (at which point the aircraft will stall). The calculation for this is very simple: AOA/ 17 is what the meter should point to. Sounds easy, should be easy, but i cannot get this to work . :-hmmm So this is the current code of the gauge: ((A:INCIDENCE ALPHA, degrees) 17 /)%((A:INCIDENCE ALPHA, degrees) 17 /)%!4.2f!Note that the 2nd element is just there for testing purposes, it shows the AOA/ 17 in exact numbers, so i can check if the arrow points to the right value.As indicated above though, it does not. The arrow is pointing to 0 and whatever value the INCIDENCE ALPHA/ 17 is... it stays at 0. The text line is working and shows the correct value.Any help is very much appreciated!Kind regards and many thanks in advance,Robert Versluys

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

try(A:INCIDENCE ALPHA, degrees) 17 /otherwise you get only a range between 0 and 1 before calculation and this will give you displayed values around 0!

Share this post


Link to post
Share on other sites

May be wrong code?SMILEY(A:INCIDENCE ALPHA,degrees) 17 /) Should be: (A:INCIDENCE ALPHA,degrees) 17 / Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

NOTA BENE: I simply reposted this to recover the "lost" XML script for posterity. Bill Leaming 04/02/2011Hello guys,I'm afraid i got a bit lost on the citation AOA gauge. This particular gauge is a 'clock style' gauge. The scale goes from 0 (which is an angle of attack of 0) to 1, which is an angle of attack of 17 degrees (at which point the aircraft will stall). The calculation for this is very simple: AOA/ 17 is what the meter should point to. Sounds easy, should be easy, but i cannot get this to work . :-hmmm So this is the current code of the gauge:

<Gauge Name="aoa_indicator" Version="1.0"> <Image Name="aoa_background.bmp" Bright="No" Imagesize="0,0,75,75" /><Element> <Position X="37" Y="37" /> 		<Image Name="aoa_arrow.bmp" PointsTo="East" ImageSizes="0,0,34,19"> 			<Axis X="9" Y="9" /> 		</Image>		<Rotate> 		<Value Minimum="0" Maximum="1">((A:INCIDENCE ALPHA, degrees) 17 /)</Value> 			<Nonlinearity> 				<Item Value="0" X="18" Y="56" />  				<Item Value="0.6" X="64" Y="37" /> 				<Item Value="1" X="37" Y="10" /> 			</Nonlinearity> 		<Delay DegreesPerSecond="12" /> 		</Rotate> </Element><Element> <Position X="0" Y="0" /> <Text X="45" Y="11" Bright="Yes" FontHeight="0" Length="5" Font="Arial Black" Color="#FFFFFF" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>%((A:INCIDENCE ALPHA, degrees) 17 /)%!4.2f!</String> </Text> </Element></Gauge>

Note that the 2nd element is just there for testing purposes, it shows the AOA/ 17 in exact numbers, so i can check if the arrow points to the right value.As indicated above though, it does not. The arrow is pointing to 0 and whatever value the INCIDENCE ALPHA/ 17 is... it stays at 0. The text line is working and shows the correct value.Any help is very much appreciated!Kind regards and many thanks in advance,Robert Versluys

May be wrong code?
<Value Minimum="0" Maximum="1">   (A:INCIDENCE ALPHA,degrees) 17 /) </Value> Should be:<Value Minimum="0" Maximum="1"> (A:INCIDENCE ALPHA,degrees) 17 / </Value> 

Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites