Jump to content
Sign in to follow this  
Guest bartels

a few xml questions

Recommended Posts

Guest Eugen

Hi,I wonder when to use container tag and what implications that have on the gauge..Secondly I wonder a bit about the speedbug see my code. How does the scale work ? What does the min and maximum values mean, is it knots?My bug seems to freeze somewhere in the higer and lower parts of the speedmeter How do I change that to fit?BrgsEugen(A:Airspeed select indicated or true, knots)(A:Airspeed select indicated or true, knots) (A:Autopilot airspeed hold var, knots) -

Share this post


Link to post
Share on other sites
Guest bartels

The Minimum and Maximum values are limits apllied to the values calculated in the following area.E.g. <Value Minimum="0" Maximum="650">(A:Airspeed select indicated or true, knots)</Value>first (A:Airspeed select indicated or true, knots) is calculated, then it is limited to minimum=0 and maximum=650, in this case it is indeed knots.I'm not too sure about the Scale, but I assume it is a scale between the result of the <Value> line and the intendet movement of the bitmap in pixel, so in this example the bitmap is shifted 1.002 pixel per knot.Arne Bartels

Share this post


Link to post
Share on other sites
Guest Eugen

Arne,The code snipet is taken originally from the Boeing 747 Primary Flight Display and the value of minimu is -53 that is a bit odd ? Does it mean in that -53*1.002 is the lower limit of the movement calculated from the position?(A:Airspeed select indicated or true, knots)(A:Autopilot airspeed hold var, knots) -BrgdsEugen

Share this post


Link to post
Share on other sites
Guest bartels

The values aren't too odd, since it displays the difference between selected and actual airspeed (more precisely to make the airspeed bug move aligned with the speed card within the limits). The movement from the neutral position up or down are limited, a higher limit for up movement (-53 is moving up!) and a smaller limit for moving down (44).So the possible movement is 53*1.002 pixel up and 44*1.002 pixel down from x=43 y=100. The rather odd factor of 1.002 is for the alignement with the speed card.Arne Bartels

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