- Messages
- 10,158
- Country

Hey guys,
As you know, I have been working on a fuel selector for ages now. Real basic. Just a 'Left-Off/On' and 'Right-Off/On' type of thing.
Right now, its actually semi working! Thoug it isnt working totally correct. The dials work 'together' (one issue), and the dials (selectors) to not point to where they should, (issue two).
Also, the right fuel selector thinks its 'fuel selector 3', which it isnt, its fuel selector 2. (I took this from the Ford Trimotor and adjusted accordingly, but evidently not enough).
The dials are properly adjusted for 'Left On and Left Off', and also 'Right On, and Right Off'.
I noticed I had at least 3 selections going (tapped an area and got an extra movement from the selectors, somehow, couldnt duplicate the click zone).
The knobs work together instead of independently, which is what I need.
Here is the code;
Any idea's why the right tank is working with the left tank, and why they arent pointing to their origins of On and Off?
Here is also a JPG of the panel. The panel is undersized in the art, actual size being 875 X 513 pixels.
I would be greatful for any input.
So far, in my studies of the fuel tanks in the SDK Docs, off is 0, Left Main is 2, and Right Main is 3, so the Enum for Right should be 3, as it is in the code, and 2 for Left as well....
Any ideas?
Many thanks,
Bill
As you know, I have been working on a fuel selector for ages now. Real basic. Just a 'Left-Off/On' and 'Right-Off/On' type of thing.
Right now, its actually semi working! Thoug it isnt working totally correct. The dials work 'together' (one issue), and the dials (selectors) to not point to where they should, (issue two).
Also, the right fuel selector thinks its 'fuel selector 3', which it isnt, its fuel selector 2. (I took this from the Ford Trimotor and adjusted accordingly, but evidently not enough).
The dials are properly adjusted for 'Left On and Left Off', and also 'Right On, and Right Off'.
I noticed I had at least 3 selections going (tapped an area and got an extra movement from the selectors, somehow, couldnt duplicate the click zone).
The knobs work together instead of independently, which is what I need.
Here is the code;
Code:
<Gauge Name="Kodiak Fuel Popup" Version="1.0">
<Image Name="Kodiak_Fuel_Selectors_Background.bmp"/>
<!-- ========================= Fuel Control - Left =============== -->
<Element>
<Position X="333" Y="342"/>
<Image Name="Fuel_Selector_Knob.bmp" PointsTo="North">
<Axis X="32" Y="233"/>
</Image>
<Rotate>
<Value>
(A:Fuel tank selector 1,enum)
s0
1 ==
if{ 2 }
els{ l0 }
</Value>
<Nonlinearity>
<Item Value="0" X="342" Y="108"/> <!-- OFF -->
<Item Value="2" X="92" Y="341"/> <!-- LEFT -->
</Nonlinearity>
<Delay DegreesPerSecond="360"/>
</Rotate>
</Element>
<!-- ========================= Fuel Control - Right ============== -->
<Element>
<Position X="534" Y="342"/>
<Image Name="Fuel_Selector_Knob.bmp" PointsTo="North">
<Axis X="32" Y="233"/>
</Image>
<Rotate>
<Value>
(A:Fuel tank selector 2,enum)
s0
1 ==
if{ 3 }
els{ l0 }
</Value>
<Nonlinearity>
<Item Value="3" X="780" Y="341"/> <!-- RIGHT -->
<Item Value="0" X="541" Y="108"/> <!-- OFF -->
</Nonlinearity>
<Delay DegreesPerSecond="360"/>
</Rotate>
</Element>
<Mouse>
<!-- ************************* Fuel Control - Left *************** -->
<Area Left="90" Top="94" Right="372" Bottom="380">
<Help ID="HELPID_GAUGE_FUEL_SELECTOR"/>
<Tooltip ID="TOOLTIPTEXT_FUEL_SELECTOR_1"/>
<Area Left="0" Top="0" Right="277" Bottom="130">
<Cursor Type="Hand"/>
<Click Event="FUEL_SELECTOR_OFF"/>
</Area>
<Area Left="0" Top="131" Right="277" Bottom="277">
<Cursor Type="Hand"/>
<Click Event="FUEL_SELECTOR_LEFT"/>
</Area>
</Area>
<!-- ************************* Fuel Control - Right ************** -->
<Area Left="496" Top="94" Right="775" Bottom="380">
<Help ID="HELPID_GAUGE_FUEL_SELECTOR"/>
<Tooltip ID="TOOLTIPTEXT_FUEL_SELECTOR_2"/>
<Area Left="0" Top="0" Right="277" Bottom="130">
<Cursor Type="Hand"/>
<Click Event="FUEL_SELECTOR_2_OFF"/>
</Area>
<Area Left="0" Top="131" Right="277" Bottom="277">
<Cursor Type="Hand"/>
<Click Event="FUEL_SELECTOR_2_RIGHT"/>
</Area>
</Area>
</Mouse>
</Gauge>
Any idea's why the right tank is working with the left tank, and why they arent pointing to their origins of On and Off?
Here is also a JPG of the panel. The panel is undersized in the art, actual size being 875 X 513 pixels.
I would be greatful for any input.
So far, in my studies of the fuel tanks in the SDK Docs, off is 0, Left Main is 2, and Right Main is 3, so the Enum for Right should be 3, as it is in the code, and 2 for Left as well....
Any ideas?
Many thanks,
Bill
Last edited:

