- Messages
- 36
- Country

Hi everyone
I've been trying to set a variable in a panel using a lever I have free in my joystick. The variable in question is (L:Fuel_Lever1_position, number).
The fuel lever position has 3 values: 0, 1, and 2. The idea is that, if the joystick lever is between 0 and 30%, the fuel lever position value is 0; 1 if it's between 31 and 70%; and 2 if it's over 71%. I'm thinking about using the joystick lever as a prop lever (looks like it's not used in the aircraft). This is what I've done:
I assigned the lever and tried the gauge, however, I'm not getting any results. The background is just a 15x15 red bitmap, so that I can print there the value of the variable I'm trying to set (using the code in the third Element section) so that I can check if the gauge is working. But I can't any values inside the square
Maybe this should be done in another way?
I forgot to say: this is for FS9.
Best regards from Colombia,
Luis Miguel
I've been trying to set a variable in a panel using a lever I have free in my joystick. The variable in question is (L:Fuel_Lever1_position, number).
The fuel lever position has 3 values: 0, 1, and 2. The idea is that, if the joystick lever is between 0 and 30%, the fuel lever position value is 0; 1 if it's between 31 and 70%; and 2 if it's over 71%. I'm thinking about using the joystick lever as a prop lever (looks like it's not used in the aircraft). This is what I've done:
Code:
<Gauge Name="JS31 Fuel levers" Version="1.0">
<Size X="15" Y="15" />
<Element>
<Image Name="bkgnd.bmp"/>
</Element>
<Element>
<Select>
<Value>
(A:GENERAL_PROPELLER_LEVER_POSITION,percent) 30 < if{0 (>L:Fuel_Lever1_position, number)}
(A:GENERAL_PROPELLER_LEVER_POSITION,percent) 70 > if{2 (>L:Fuel_Lever1_position, number)}
</Value>
</Select>
</Element>
<Element>
<Text x="15" Y="15" Length="1" Font="Arial" Color="White" Adjust="Center">
<String>(L:Fuel_Lever1_position, number)</String>
</Text>
</Element>
</Gauge>
I assigned the lever and tried the gauge, however, I'm not getting any results. The background is just a 15x15 red bitmap, so that I can print there the value of the variable I'm trying to set (using the code in the third Element section) so that I can check if the gauge is working. But I can't any values inside the square
I forgot to say: this is for FS9.
Best regards from Colombia,
Luis Miguel
Last edited:
