• 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 Y Scale on Attitude Ladder?

Messages
10,085
Country
us-arizona
Hey all,

For what reason is there a Y-scale on a Attitude Indicator? This is a ladder attitude indicator in a PFD screen. This is from the FS9 747 backup attitude indicator. I have found several like this now. I am guessing it would be good to know why its here and how to tune it.

This is the code;
<Value Minimum="-90" Maximum="90">(A:Attitude indicator pitch degrees:2,degrees) /-/</Value>
<Scale Y="0.7375"/>

Below is the block its in.

Code:
   <Element>
      <Position X="1084" Y="174"/>
      <MaskImage Name="ATT_mask.bmp" ImageSizes="248,361">
         <Axis X="124" Y="180"/>
      </MaskImage>
      <Image Name="Analog_Attitude_Ladder.bmp" ImageSizes="250,600">
         <Axis X="124" Y="296"/>
      </Image>
      <Shift>
         <Value Minimum="-90" Maximum="90">(A:Attitude indicator pitch degrees:2,degrees) /-/</Value>
         <Scale Y="0.7375"/>
      </Shift>
      <Rotate>
         <Value>(A:Attitude indicator bank degrees:2,radians)</Value>
      </Rotate>
   </Element>
 

Heretic

Resource contributor
Messages
6,829
Country
germany
As far as I know, this scales the input variable (pitch) and tells the XML parser to shift the image along its "Y" (vertical) axis.
 
Messages
1,451
Country
mexico
Bill

There you go... a graphical explanation:
SK407_HSI_Bendix_King_Course_Deviation_Bar.jpg


I made this because I always forget the idea.
In a matter of fact, I can't remember where I got the scalar "127". If I can recall, is somewhere in the ESP SDK Overview...:rolleyes:

Sergio.
;)
 
Messages
1,451
Country
mexico
ADENDUM:
Thanks to my bad memory, I always comment my gauges. From the HSI itself I made this note:
HTML:
   <!-- Course Deviation Bar:
           The entire run of the needle, is between the whole course deviation scale.
            For the graphic, this is covered by 110 pixels from the left of the scale to the center and,
            110 pixels from the center to the right. The SDK simply states that the CDI needle deflection is (+/- 127) "numbers" and is controlled
            by the variable (A:HSI CDI needle, number). So, for this particular case the statement "CDI needle deflection (+/- 127) across 110 pixels" means
            that the CDI needle can run 127 "numbers" from left to the center and also 127 "numbers" from the center to the right.
            To calculate the Scale in the Y direction, divide 110 pixels / 127 number. This yields 0.8661"pixels per number" with 4 decimal precision.-->

I hope this make sense to you.
Sergio.
;)
 

n4gix

Resource contributor
Messages
11,674
Country
unitedstates
Sergio, the exact same 'formula' is used when converting FS variable output to 3d objects, albeit with an added twist called 'bias':

SIM: Converts simvar to keyframes: simvar * scale + bias = keyframes
 
Messages
1,451
Country
mexico
SIM: Converts simvar to keyframes: simvar * scale + bias = keyframes
So many knowledge spread around... a few weeks ago you explained in another thread how bias is properly used and of course... I can't remember where exactly :tapedshut.

Thank you kindly.
Sergio.
:)

P.S. Bill, please forgive me for stealing your thread. :oops:
 
Top