• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

Whiskey Compass: a question

Cees Donker

Administrator
Staff member
I want to use this gauge in a plane I'm building, but the strip shows too low. How do I change that? Is it even possible?


The code:
<Gauge Name="kompas" Version="1.0">
<Image Name="kompas_background.bmp"/>

<!-- ======================= Compass Strip ======================= -->
<Element>
<Position X="19" Y="14"/>
<MaskImage Name="kompas_window.bmp">
<Axis X="40" Y="0"/>
</MaskImage>
<Image Name="kompas_strip.bmp">
<Axis X="167" Y="0"/>
<Nonlinearity>
<Item Value="0" X="300" Y="0"/>
<Item Value="360" X="35" Y="0"/>
</Nonlinearity>
</Image>
<Shift>
<Value>(A:Wiskey compass indication degrees,degrees) dnor</Value>
<Failures>
<GAUGE_KOMPAS Action="Freeze"/>
</Failures>
</Shift>
<Shift>
<Value Minimum="-15" Maximum="15">(A:ATTITUDE INDICATOR PITCH DEGREES,degrees) /-/</Value>
<Scale Y="1.0"/>
<Nonlinearity>
<Item Value=" 15" X="0" Y="-26"/>
<Item Value=" 0" X="0" Y="0"/>
<Item Value="-15" X="0" Y="26"/>
</Nonlinearity>
</Shift>


<Rotate>
<Value Minimum="-30" Maximum="30">(A:Turn coordinator ball,degrees) </Value>
<Delay DegreesPerSecond="30" />
</Rotate>




</Element>

<!-- ======================= Tick Marks ========================= -->
<Element>
<Position X="59" Y="16"/>
<Image Name="kompas_line.bmp"/>
</Element>

<!-- ======================= Shadow ============================= -->
<Element>
<Position X="0" Y="0"/>
<Image Name="kompas_shadow.bmp" Alpha="Yes"/>
</Element>


<!-- ======================= Reflection ========================= -->
<Element>
<Position X="0" Y="0"/>
<Image Name="kompas_reflection.bmp" Alpha="Yes"/>
</Element>



<Mouse>
<Tooltip ID="TOOLTIPTEXT_WHISKEY_COMPASS"/>
</Mouse>
</Gauge>


:dizzy:

Cees
 
Hello Cees
I'm not too familiar with XML gauges, so not sure that it has to be done, but you can try to increase the Y value:
<Element>
<Position X="19" Y="14"/>

Have a nice day, cheers
Martin :jump:
 
Hello Cees
I'm not too familiar with XML gauges, so not sure that it has to be done, but you can try to increase the Y value:
<Element>
<Position X="19" Y="14"/>

Have a nice day, cheers
Martin :jump:
Thanks Martin. As they say: asking a question is answering that same question. I found a tutorial (simple) that explains xml gauge programming. And the value that must be increased is the other Y value:

<Element>
<Position X="19" Y="14"/>
<MaskImage Name="kompas_window.bmp">
<Axis X="40" Y="0"/>



:untroubled:

Cees
 
Wonderfull Cees
I would be happy to know more about XML gauges, can you please send me the link to this tuto?

Cheers
Martin :jump:
 
Many thanks Cees
I dropped a quick eye on it, and it seems I'll find there an answer on how to do a 3D compass, reacting to pitch and bank, lovely!

Cheers
Martin :jump:
 
Back
Top