• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 Angle of Attack gauge not working

Messages
8
Country
us-arizona
Doing updates to some of my panels to bring them current. The AOA gauge is for the lack of better words is just not working out. Thought this would be fairly simple but for some reason I am being clueless on something but not sure what it is... nothing happens with the gauge when testing it out.

Here is the code - thoughts?

<Gauge Name="angle of attack" Version="1.0">

<Image Name="aoabackground.bmp" Bright="No" />

<Element>
<Position X="37" Y="37" />
<Image Name="aoaneedle.bmp" PointsTo="East" >
<Axis X="9" Y="9" />
</Image>
<Rotate>
<Value Minimum="0" Maximum="1">((A:INCIDENCE ALPHA, degrees) )</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>

</Gauge>
 

mgh

Messages
1,413
Country
unitedkingdom
Code:
<Value Minimum="0" Maximum="1">((A:INCIDENCE ALPHA, degrees) )</Value>

Aren't the minimum/maximum values (0 - 1) inconsistent with A:INCIDENCE ALPHA in degrees?
 
Messages
8
Country
us-arizona
Well maybe, no matter what I use I can't get the darn thing to do anything. I have tried actual degrees in there and nothing as well.

I have even tried this and it didn't work

<Value Minimum="0" Maximum="1">((A:INCIDENCE ALPHA, degrees) 20 /)</Value>
 
Messages
189
Country
us-michigan
This works for me in fs9..

<Element>
<Position X="78" Y="78"/>
<Image Name="AOA_Needle.bmp" Luminous="Yes" ImageSizes="85,11">
<Axis X="15" Y="4"/>
</Image>
<Rotate>
<Value Minimum="0" Maximum="32">(A:AIRSPEED INDICATED,knots) 25 &gt; if{ (A:Incidence Alpha,degrees) }</Value>
<Nonlinearity>
<Item Value="32" X="11" Y="59"/>
<Item Value="25" X="42" Y="18"/>
<Item Value="19" X="70" Y="9"/>
<Item Value="11" X="113" Y="16"/>
<Item Value="8" X="145" Y="58"/>
<Item Value="4" X="145" Y="94"/>
<Item Value="0" X="32" Y="128"/>
</Nonlinearity>
<Delay DegreesPerSecond="100"/>
</Rotate>
</Element>



Greg
 

ddawson

Resource contributor
Messages
862
Country
canada
Check the values in your non-linearity table. When I plot them on a piece of paper, they don't seem to make sense.
 

mgh

Messages
1,413
Country
unitedkingdom
This snippet works:

Code:
<Element id="AOA Actual needle">
      <FloatPosition>64.000,64.000</FloatPosition>
      <Image id="AoA_Actual.bmp" Name="AoA_Actual.bmp">
          <Transparent>True</Transparent>
          <Axis>41.500,4.500</Axis>
          <Bright>True</Bright>
         <Luminous>True</Luminous>
      </Image>
     <Rotation id="Rotation">
         <Expression id="Expression">
              <Minimum>-0.800</Minimum>
             <Maximum>0.800</Maximum>
             <Script>(A:INCIDENCE ALPHA, Radians) 4.5 *</Script>
         </Expression>
     </Rotation>
 </Element>
>
 
Last edited:
Messages
211
Country
germany
My AOA indicator.

gan85imdshh.jpg


And this is the XML configuration.

Code:
<Gauge Name="AOA indicator" Version="1.0">
   <Image Name="AOA indicator_back.bmp" Luminous="Yes"/>
  <Element>
    <Position X="155" Y="155"/>
    <Image Name="AOA indicator_needle.bmp">
      <Axis X="120" Y="5"/>
    </Image>
    <Rotate>
      <Value>(A:AIRSPEED INDICATED, kilometer per hour) 100 &gt;
              if{ (A:INCIDENCE ALPHA, degrees) -15 max 40 min }
              els{ (A:INCIDENCE ALPHA, degrees) 0 max 0 min }

      </Value>
         <Nonlinearity>
            <Item Value="-15" Degrees="-90"/>
            <Item Value="-10" Degrees="-75"/>
            <Item Value="0" Degrees="-25"/>
            <Item Value="10" Degrees="25"/>
            <Item Value="20" Degrees="75"/>
            <Item Value="30" Degrees="125"/>
            <Item Value="35" Degrees="150"/>
            <Item Value="40" Degrees="165"/>
         </Nonlinearity>
         <Delay DegreesPerSecond="60"/>
    </Rotate>
</Element>
</Gauge>
 
Messages
8
Country
us-arizona
Thanks, I see the biggest missing part being the airspeed indication which of course I'm missing.
 
Messages
8
Country
us-arizona
Yep found that out, I have one working fine now. Missed a few things and you guys posting yours helped with where I messed up at. Thanks!
 

Roy Holmes

Resource contributor
Messages
1,803
Country
us-virginia
<Value Minimum="0" Maximum="1">((A:INCIDENCE ALPHA, degrees) )</Value>

You have double brackets, all the working examples have single brackets
Roy
 
Messages
8
Country
us-arizona
Yep I did, and a few other things.. all fixed here it is in my Citation XLS panel I'm working on.

xlspanel.jpg
 
Top