Whiskey Compass: a question
Results 1 to 7 of 7

Thread: Whiskey Compass: a question

  1. #1
    SOH-CM-2024 Cees Donker's Avatar
    Join Date
    Jun 2005
    Location
    Zoetermeer, Netherlands
    Age
    68
    Posts
    4,631

    Whiskey Compass: a question

    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>




    Cees

  2. #2
    SOH-CM-2024 Cees Donker's Avatar
    Join Date
    Jun 2005
    Location
    Zoetermeer, Netherlands
    Age
    68
    Posts
    4,631
    I meant too high. Mustn't post things just before bed-time!



    Cees

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

  4. #4
    SOH-CM-2024 Cees Donker's Avatar
    Join Date
    Jun 2005
    Location
    Zoetermeer, Netherlands
    Age
    68
    Posts
    4,631
    Quote Originally Posted by Klein View Post
    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
    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"/>





    Cees

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

    Cheers
    Martin

  6. #6

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

Members who have read this thread: 0

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •