• 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 Vertical Gauge

Messages
1,468
Country
italy
I have at the moment a horizontal gauge in which the needle moves left to right as ground speed increases.
Code:
 <Image Name="ground_bg.bmp"/>
   <Element>
      <Position X="4" Y="13"/>
      <Image Name="ground_needle.bmp">
         <Nonlinearity>
            <Item Value="0" X="-1" Y="0"/>
            <Item Value="20" X="-41" Y="0"/>
         </Nonlinearity>
      </Image>     
      <Shift>
         <Value Minimum="0" Maximum="22">(A:GROUND VELOCITY, knots)</Value>
      </Shift>
   </Element>

What I want to do though is to have a vertical gauge with zero at the bottom and max at the top. how do I tweak the coding to achieve that?
vololiberista
 
I thought about that Tom, but still It doesn't seem to follow any logic.
Here's the latest code:-
Code:
<Element>
      <Position X="2" Y="47"/>
      <Image Name="ground_needlex.bmp">
         <Nonlinearity>
            <Item Value="20" X="2" Y="8"/>
            <Item Value="0" X="2" Y="47"/>
         </Nonlinearity>
      </Image>
      <Shift>
         <Value Minimum="0" Maximum="22">(A:GROUND VELOCITY, knots)</Value>
      </Shift>
   </Element>

Unfortunately the site is not letting me upload any images :-(
I have a bmp measuring 20x56 with zero at 10x47 and twenty at 10x8
The pointer should start at 2x47 and move upwards to 2x8.
In Panel studio it is displayed correctly but in the sim the needle is displayed at the top of the gauge and the needle moves down instead of up

I've tried all sorts of different combinations and couldn't get what should be quite a simple result.
vololiberista
 
exchange <Item Values/>


<Item Value="0" X="2" Y="47"/>
<Item Value="20" X="2" Y="8"/>


and

<Value Minimum="0" Maximum="22">(A:GROUND VELOCITY, knots) 0 max 22 min</Value>


???





EDIT:
<Nonlinearity> Section in the <Shift> Section


Code:
<Element>
      <Position X="2" Y="47"/>
      <Image Name="ground_needlex.bmp">
       </Image>
      <Shift>
         <Value Minimum="0" Maximum="22">(A:GROUND VELOCITY, knots) 0 max 22 min</Value>
        <Nonlinearity>
            <Item Value="0" X="2" Y="47"/>
            <Item Value="20" X="2" Y="8"/>
        </Nonlinearity>
      </Shift>
   </Element>
 
Last edited:
Thanks for all the advice.
This works but quite why y=0 perhaps could be elucidated, thanks.
vololiberista
Code:
<Gauge Name="Ground Speed gauge" Version="1.0">
   <Image Name="ground_bgx.bmp"/>
   <Element>
      <Position X="2" Y="47"/>
      <Image Name="ground_needlex.bmp">
         <Nonlinearity>
            <Item Value="20" X="2" Y="40"/>
            <Item Value="0" X="2" [COLOR="Red"]Y="0"[/COLOR]/>
         </Nonlinearity>
      </Image>
      <Shift>
         <Value Minimum="0" Maximum="20">(A:GROUND VELOCITY, knots)</Value>
      </Shift>
   </Element>
   <Mouse>
      <Tooltip>Taxi Speed Indicator</Tooltip>
   </Mouse>
</Gauge>
 
Back
Top