Jump to content
Sign in to follow this  
phjvh

Cessna Citation AOA gauge

Recommended Posts

Guest robertv

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
Guest Schulli

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..."


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

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...