FS2004 Y Scale on Attitude Ladder?

#1
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
#2
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.
 
#3
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.
;)
 
#4
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
#5
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
 
#6
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