|
Post by Tom/CalClassic on Dec 17, 2014 19:00:59 GMT -5
1. Copy and Paste the Notepad gauges to the DC-4 panel (where his gauges are). They need to be in a folder. Fuel Planner Notepad has _F, Pilot's Notepad (handling notes) has _P, and the FE Notepad has nothing. 2. Rename them (changing the aircraft name to DC4 would be logical). 3. Copy and Paste the Notepad.bmp file too. 4. Open the copied XML gauge in Notepad or Wordpad. 5. Read the top section, and change the aircraft names there. 6. Edit the numbers in the sections below. The first number in a section is for the first aircraft type, etc. 7. Do not edit anything below the line that says DO NOT EDIT BELOW THIS LINE.
A quick example. Since you are apparently using the DC-6 one, I'll use that as an example.
Here is the top part of the DC-6 Fuel Planner gauge:
<?xml version="1.0" encoding="utf-8"?> <Gauge Name="Notepad_F_DC6" Version="1.0"> <!-- Flight Planner Notepad by Tom Gibson --> <Image Name="Notepad.bmp" ImageSizes="228,500,228,500"/> <Size X="228" Y="500"/>
<Macro Name="Types">6</Macro> <!-- number of types (1 to 6) --> <Macro Name="Type1">DC-6B CB16</Macro> <!-- enter the type names here --> <Macro Name="Type2">DC-6B CB17</Macro> <!-- for 4 types, only Type1 and Type2 amd Type3 and Type 4 are used --> <Macro Name="Type3">DC-6A CB17</Macro> <!-- for 3 types, only Type1 and Type2 and Type3 are used --> <Macro Name="Type4">DC-6 CA15</Macro> <!-- for 2 types, only Type1 and Type2 are used --> <Macro Name="Type5">DC-6 CB16</Macro> <!-- for 1 type, only Type 1 is used --> <Macro Name="Type6">DC-6A CB16</Macro> <!-- 6th type -->
<!-- for values below - enter the values for the # of types you have included in "Types". Set the other values to 1 (do NOT remove them!) -->
<Macro Name="MTOW"> (L:AC_Type, number) 0 == if{ 103800 } <!-- Type 1 --> els{ (L:AC_Type, number) 1 == if{ 107000 } <!-- Type 2 --> els{ (L:AC_Type, number) 2 == if{ 107000 } <!-- Type 3 --> els{ (L:AC_Type, number) 3 == if{ 95200 } <!-- Type 4 --> els{ (L:AC_Type, number) 4 == if{ 97200 } <!-- Type 5 --> els{ 103800 } } } } } </Macro> <!-- Type 6 -->
Now we could change this to something like:
<?xml version="1.0" encoding="utf-8"?> <Gauge Name="Notepad_F_DC4" Version="1.0"> <!-- Flight Planner Notepad by Tom Gibson --> <Image Name="Notepad.bmp" ImageSizes="228,500,228,500"/> <Size X="228" Y="500"/>
<Macro Name="Types">1</Macro> <!-- number of types (1 to 6) --> <Macro Name="Type1">DC-4</Macro> <!-- enter the type names here --> <Macro Name="Type2">None</Macro> <!-- for 4 types, only Type1 and Type2 amd Type3 and Type 4 are used --> <Macro Name="Type3">None</Macro> <!-- for 3 types, only Type1 and Type2 and Type3 are used --> <Macro Name="Type4">None</Macro> <!-- for 2 types, only Type1 and Type2 are used --> <Macro Name="Type5">None</Macro> <!-- for 1 type, only Type 1 is used --> <Macro Name="Type6">None</Macro> <!-- 6th type -->
<!-- for values below - enter the values for the # of types you have included in "Types". Set the other values to 1 (do NOT remove them!) -->
<Macro Name="MTOW"> (L:AC_Type, number) 0 == if{ 73000 } <!-- Type 1 --> els{ (L:AC_Type, number) 1 == if{ 1} <!-- Type 2 --> els{ (L:AC_Type, number) 2 == if{ 1} <!-- Type 3 --> els{ (L:AC_Type, number) 3 == if{ 1} <!-- Type 4 --> els{ (L:AC_Type, number) 4 == if{ 1} <!-- Type 5 --> els{ 103800 } } } } } </Macro> <!-- Type 6 -->
Note I set the number of types to 1 (you can have more if Jens has different flight dynamics for other versions). I set the unneeded names to NONE.
Then I've changed the MTOW to that of the DC-4, 73,000 lbs, and set the rest to 1. Do this same thing for every section below this. If you used more than 1 Type, just enter the numbers for Type 2, etc.
Be very careful to only change the NUMBERS and NAMES, nothing else.
Hope this helps,
|
|
|
Post by midnightmusic on Dec 18, 2014 11:52:09 GMT -5
Tom, one last question and I promise I won't bug you about this anymore. Everything is working except I get a red warning on ZFW. I checked the internet for the ZFW of a DC-4, it comes up as 43,300. Jens DC-4 shows the ZFW at 43,200. I used that number. Could you have a quick look at a copy of the Notepad_F_DC4 entries and see if a mistake on my part jumps out at you as to why the red warning on ZFW.
Lee
Here are the current entries:
<?xml version="1.0" encoding="utf-8"?> <Gauge Name="Notepad_F_DC4" Version="1.0"> <!-- Flight Planner Notepad by Tom Gibson --> <Image Name="Notepad.bmp" ImageSizes="228,500,228,500"/> <Size X="228" Y="500"/>
<Macro Name="Types">1</Macro> <!-- number of types (1 to 6) --> <Macro Name="Type1">DC-4</Macro> <!-- enter the type names here --> <Macro Name="Type2">None</Macro> <!-- for 4 types, only Type1 and Type2 amd Type3 and Type 4 are used --> <Macro Name="Type3">None</Macro> <!-- for 3 types, only Type1 and Type2 and Type3 are used --> <Macro Name="Type4">None</Macro> <!-- for 2 types, only Type1 and Type2 are used --> <Macro Name="Type5">None</Macro> <!-- for 1 type, only Type 1 is used --> <Macro Name="Type6">None</Macro> <!-- 6th type -->
<!-- for values below - enter the values for the # of types you have included in "Types". Set the other values to 1 (do NOT remove them!) -->
//<Macro Name="MTOW"> //(L:AC_Type, number) 0 == if{ 73000 } <!-- Type 1 --> //els{ (L:AC_Type, number) 1 == if{ 1} <!-- Type 2 --> //els{ (L:AC_Type, number) 2 == if{ 1} <!-- Type 3 --> //els{ (L:AC_Type, number) 3 == if{ 1} <!-- Type 4 --> //els{ (L:AC_Type, number) 4 == if{ 1} <!-- Type 5 --> //els{ 103800 } } } } } </Macro> <!-- Type 6 -->
<!-- for values below - enter the values for the # of types you have included in "Types". Set the other values to 1 (do NOT remove them!) -->
<Macro Name="MTOW"> (L:AC_Type, number) 0 == if{ 73000 } <!-- Type 1 --> els{ (L:AC_Type, number) 1 == if{ 1 } <!-- Type 2 --> els{ (L:AC_Type, number) 2 == if{ 1 } <!-- Type 3 --> els{ (L:AC_Type, number) 3 == if{ 1 } <!-- Type 4 --> els{ (L:AC_Type, number) 4 == if{ 1 } <!-- Type 5 --> els{ 103800 } } } } } </Macro> <!-- Type 6 --> <Macro Name="MLW"> (L:AC_Type, number) 0 == if{ 63500 } els{ (L:AC_Type, number) 1 == if{ 1 } els{ (L:AC_Type, number) 2 == if{ 1 } els{ (L:AC_Type, number) 3 == if{ 1 } els{ (L:AC_Type, number) 4 == if{ 1 } els{ 88200 } } } } } </Macro> <Macro Name="MTOW_Dry"> <!-- limit for no ADI and AF, or just no ADI, or just no AF --> (L:AC_Type, number) 0 == if{ 73000 } els{ (L:AC_Type, number) 1 == if{ 1 } els{ (L:AC_Type, number) 2 == if{ 1 } els{ (L:AC_Type, number) 3 == if{ 1 } els{ (L:AC_Type, number) 4 == if{ 1 } els{ 92200 } } } } } </Macro> <Macro Name="ZFW"> <!-- max weight without fuel --> (L:AC_Type, number) 0 == if{ 43200 } els{ (L:AC_Type, number) 1 == if{ 1 } els{ (L:AC_Type, number) 2 == if{ 1 } els{ (L:AC_Type, number) 3 == if{ 1 } els{ (L:AC_Type, number) 4 == if{ 1 } els{ 83200 } } } } } </Macro> <Macro Name="Econ_TAS"> <!-- true airspeed --> (L:AC_Type, number) 0 == if{ 246 } els{ (L:AC_Type, number) 1 == if{ 256 } els{ (L:AC_Type, number) 2 == if{ 256 } els{ (L:AC_Type, number) 3 == if{ 246 } els{ (L:AC_Type, number) 4 == if{ 247 } els{ 246 } } } } } </Macro> <Macro Name="Polar_TAS"> (L:AC_Type, number) 0 == if{ 1 } els{ (L:AC_Type, number) 1 == if{ 1 } els{ (L:AC_Type, number) 2 == if{ 1 } els{ (L:AC_Type, number) 3 == if{ 1 } els{ (L:AC_Type, number) 4 == if{ 1 } els{ 1 } } } } } </Macro> <Macro Name="Econ_FF"> <!-- fuel flow --> (L:AC_Type, number) 0 == if{ 2000 } els{ (L:AC_Type, number) 1 == if{ 2100 } els{ (L:AC_Type, number) 2 == if{ 2100 } els{ (L:AC_Type, number) 3 == if{ 2000 } els{ (L:AC_Type, number) 4 == if{ 2100 } els{ 2000 } } } } } </Macro> <Macro Name="Polar_FF"> (L:AC_Type, number) 0 == if{ 1 } els{ (L:AC_Type, number) 1 == if{ 1 } els{ (L:AC_Type, number) 2 == if{ 1 } els{ (L:AC_Type, number) 3 == if{ 1 } els{ (L:AC_Type, number) 4 == if{ 1 } els{ 1 } } } } } </Macro>
<Macro Name="Cert_Ceil"> (L:AC_Type, number) 0 == if{ 250 } els{ (L:AC_Type, number) 1 == if{ 250 } els{ (L:AC_Type, number) 2 == if{ 250 } els{ (L:AC_Type, number) 3 == if{ 250 } els{ (L:AC_Type, number) 4 == if{ 250 } els{ 250 } } } } } </Macro>
<Macro Name="ADI">1</Macro> <!-- Do the planes have ADI? (1 = yes, 0 = no) --> <Macro Name="AF">1</Macro> <!-- Do the planes have Autofeather? (1 = yes, 0 = no) -->
<Macro Name="Num_Pwr">1</Macro> <!-- number of power settings (1, or 2 if plane has polar cruise) --> <Macro Name="Pwr1">Econ Cruise</Macro> <Macro Name="Pwr2">Polar Cruise</Macro>
<Macro Name="DumpAux">10.6</Macro> <!-- rates for DSD fuel dump gauge --> <Macro Name="DumpMain">8.2</Macro>
<Macro Name="DescRate">500</Macro> <!-- Descent Rate (if 700 then enter 500, if 1000 then 800 -->
<!-- Determine fuel density for FS2004 (pounds per gallon) or FSX (pounds). FSX will return 0 for pounds per gallon, but FS9 does NOT return 0 for pounds. --> <Macro Name="Fuel_Weight"> (A:Fuel weight per gallon, pounds per gallon) 0 == if{ (A:Fuel weight per gallon, pounds) } els{ (A:Fuel weight per gallon, pounds per gallon) } </Macro>
<!-- set default Aircraft type at aircraft load based on fuel capacity --> <Element> <Select> <Value> (G:Var1) 0 == if{ 1 (>G:Var1) (A:Fuel Total Capacity, gallons) @fuel_Weight * near s0 l0 29592 == if{ 5 (>L:AC_Type, number) } l0 25488 == if{ 4 (>L:AC_Type, number) } l0 28332 == if{ 3 (>L:AC_Type, number) } l0 33068 == if{ 2 (>L:AC_Type, number) } l0 33072 == if{ 1 (>L:AC_Type, number) } } </Value> </Select> </Element>
<!-- DO NOT EDIT ANYTHING BELOW THIS LINE -->
<Macro Name="PTAS"> (L:Pwr_Set, number) s0 0 == if{ @econ_TAS } els{ l0 1 == if{ @polar_TAS } } </Macro> <Macro Name="PFF"> (L:Pwr_Set, number) s0 0 == if{ @econ_FF } els{ l0 1 == if{ @polar_FF } } </Macro>
<Macro Name="XPOS1">20</Macro> <Macro Name="XPOS2">100</Macro> <Macro Name="YSIZE">18</Macro> <Macro Name="LINESPACE">22</Macro> <Macro Name="XSIZEVAL">100</Macro> <Macro Name="XLENVAL">15</Macro> <Macro Name="COL_HEAD">#242DDC</Macro> <Macro Name="COL_NAME">#000000</Macro> <Macro Name="COL_VALUE">#000000</Macro> <Macro Name="COL_WARN">#FF0000</Macro> <Macro Name="COL_OK">#00FF00</Macro> <Macro Name="FONT_TRG">MS Reference Sans Serif Bold</Macro>
<Macro Name="MTOW_Mod"> <!-- set proper MTOW--> @adi 0 == @af 0 == && if{ @mtow } @adi 1 == @af 0 == && if{ (L:WATER_1, bool) if{ @mtow } els{ @mtow_Dry } } @adi 0 == @af 1 == && if{ (L:AF Switch, bool) if{ @mtow } els{ @mtow_Dry } } @adi 1 == @af 1 == && if{ (L:WATER_1, bool) (L:AF Switch, bool) && if{ @mtow } els{ @mtow_Dry } } </Macro>
<Macro Name="Route_Fuel"> (L:Distance, number) @ptas / @pff * @pff 0.1 * + </Macro> <!-- plus 10% PPH ground allowance --> <Macro Name="Hdwind_Fuel"> (L:Distance, number) @ptas / @pff * 0.15 * d (>L:Headwind Fuel, number) </Macro> <Macro Name="Hold_Fuel"> @econ_FF 0.75 * </Macro> <Macro Name="Divert_Fuel"> @econ_FF 0.75 * </Macro> <Macro Name="Total_Fuel"> @route_Fuel @hdwind_Fuel @hold_Fuel @divert_Fuel + + + d (>L:Total Fuel, number) </Macro> <Macro Name="Reserve_Fuel"> @hdwind_Fuel @hold_Fuel @divert_Fuel + + d (>L:Reserve Fuel, number) </Macro> <Macro Name="MTOW_Payload"> @mtow @route_Fuel - @reserve_Fuel - (A:Empty Weight, pounds) - </Macro> <Macro Name="MLW_Payload"> @mlw @reserve_Fuel - (A:Empty Weight, pounds) - </Macro> <Macro Name="ZFW_Payload"> @zfw (A:Empty Weight, pounds) - </Macro> <Macro Name="DescendAlt"> (L:Distance, number) (L:Planned TAS, number) / 128.70 * s0 (L:IAP Altitude, number) + @cert_Ceil < if{ l0 10 div 10 * (>L:Descend Altitude, number) } els{ @cert_Ceil (L:IAP Altitude, number) - (>L:Descend Altitude, number) } </Macro>
<Element> <!-- set Max Payload value --> <Select> <Value> @mtow_Payload @mlw_Payload < @mtow_Payload @zfw_Payload < && if{ @mtow_Payload (>L:Max Payload, number) } els{ @mlw_Payload @mtow_Payload < @mlw_Payload @zfw_Payload < && if{ @mlw_Payload (>L:Max Payload, number) } els{ @zfw_Payload (>L:Max Payload, number) } } (L:Max Payload, number) 0 < if{ 0 (>L:Max Payload, number) } </Value> </Select> </Element>
<Macro Name="StaLoad"> (G:Var8) s0 1 == if{ (A:Payload Station Weight:1, pounds) (L:Payload, number) + (>L:Payload, number) } els{ l0 2 == if{ (A:Payload Station Weight:2, pounds) (L:Payload, number) + (>L:Payload, number) } els{ l0 3 == if{ (A:Payload Station Weight:3, pounds) (L:Payload, number) + (>L:Payload, number) } els{ l0 4 == if{ (A:Payload Station Weight:4, pounds) (L:Payload, number) + (>L:Payload, number) } els{ l0 5 == if{ (A:Payload Station Weight:5, pounds) (L:Payload, number) + (>L:Payload, number) } els{ l0 6 == if{ (A:Payload Station Weight:6, pounds) (L:Payload, number) + (>L:Payload, number) } els{ l0 7 == if{ (A:Payload Station Weight:7, pounds) (L:Payload, number) + (>L:Payload, number) } els{ l0 8 == if{ (A:Payload Station Weight:8, pounds) (L:Payload, number) + (>L:Payload, number) } els{ l0 9 == if{ (A:Payload Station Weight:9, pounds) (L:Payload, number) + (>L:Payload, number) } els{ l0 10 == if{ (A:Payload Station Weight:10, pounds) (L:Payload, number) + (>L:Payload, number) } } } } } } } } } } <!-- add station loads: max = 10 --> </Macro>
<Element> <!-- set default TAS & FF values to Econ at panel load --> <Select> <Value> (L:Planned FF, number) 0 == if{ @econ_TAS (>L:Planned TAS, number) @econ_FF (>L:Planned FF, number) } </Value> </Select> </Element>
<Element> <!-- calculate Payload via stations once a second --> <Select> <Value> (E:Zulu Time, seconds) 1 % flr 0 == (A:Payload Station Count, number) 0 > && if{ 0 (>G:Var8) 0 (>L:Payload, number) :0 (G:Var8) 1 + (>G:Var8) @staload (G:Var8) (A:Payload Station Count, number) < if{ g0 } </Value> </Select> </Element>
<Element> <!-- calculate distance traveled so far and route fuel left, once every second --> <Select> <Value> (E:Zulu Time, seconds) 10 % flr (L:Previous Second, number) != if{ (A:Ground Velocity, knots) 3600 / (L:Distance Traveled, number) + (>L:Distance Traveled, number) (A:Fuel Total Quantity, gallons) @fuel_Weight * @hold_Fuel -@divert_Fuel - (>L:Route Fuel Left, number) (L:Distance Traveled, number) 1 < if{ 1 (>L:Distance Traveled, number) } (L:Route Fuel Left, number) 0 < if{ 0 (>L:Route Fuel Left, number) } (E:Zulu Time, seconds) 10 % flr (>L:Previous Second, number) } </Value> </Select> </Element> <Element> <!-- reset distance traveled so far if on the ground--> <Select> <Value> (L:Distance Traveled, number) 1 > (A:Sim on Ground, bool) 1 == && if{ 1 (>L:Distance Traveled, number) } </Value> </Select> </Element>
<Element> <!-- load fuel, water, and oil into tanks if fuel value is clicked --> <Select> <Value> <!-- Load water and oil --> (G:Var6) 1 == (G:Var6) 2 == || if{ 25 (>L:WATER_LEVEL1, enum) 25 (>L:WATER_LEVEL2, enum) 25 (>L:WATER_LEVEL3, enum) 25 (>L:WATER_LEVEL4, enum) 50 (>L:ENG1 OIL QUANTITY, gallons) 50 (>L:ENG2 OIL QUANTITY, gallons) 50 (>L:ENG3 OIL QUANTITY, gallons) 50 (>L:ENG4 OIL QUANTITY, gallons)
<!-- Set variables to load fuel if Total fuel required + 100 pounds is less than current fuel load --> @total_Fuel 100 + (A:Fuel Total Quantity, gallons) @fuel_Weight * > if{ 1 (>G:Var6) -100 (>L:RATE_TANK_AUX_RIGHT, number) -100 (>L:RATE_TANK_AUX_LEFT, number) -100 (>L:RATE_TANK_EXTERNAL1, number) -100 (>L:RATE_TANK_EXTERNAL2, number) -100 (>L:RATE_TANK_MAIN_LEFT, number) -100 (>L:RATE_TANK_MAIN_RIGHT, number) -100 (>L:RATE_TANK_CENTER, number) -100 (>L:RATE_TANK_CENTER2, number) -100 (>L:RATE_TANK_CENTER3, number) -100 (>L:RATE_TANK_TIP_LEFT, number) -100 (>L:RATE_TANK_TIP_RIGHT, number)
<!-- If External1/2 are the main tanks, load those first --> (A:Fuel Tank External1 Capacity, gallons) 0 > (A:Fuel Tank External2 Capacity, gallons) 0 > || (A:Fuel Tank External1 Level, percent) 100 < (A:Fuel Tank External2 Level, percent) 100 < || && if{ 1 (>L:FUEL_DUMP_MAINL, bool) 1 (>L:FUEL_DUMP_MAINR, bool) } els{ 1 (>L:FUEL_DUMP_AUXL, bool) 1 (>L:FUEL_DUMP_AUXR, bool) }
<!-- If Main L/R are the main tanks, load those first --> (A:Fuel Tank Left Main Capacity, gallons) 0 > (A:Fuel Tank Right Main Capacity, gallons) 0 > || (A:Fuel Tank Left Main Level, percent) 100 < (A:Fuel Tank Right Main Level, percent) 100 < || && if{ 1 (>L:FUEL_DUMP_MAINL, bool) 1 (>L:FUEL_DUMP_MAINR, bool) } els{ 1 (>L:FUEL_DUMP_AUXL, bool) 1 (>L:FUEL_DUMP_AUXR, bool) }
}
<!-- Set variables to dump fuel if Total fuel required + 100 pounds is greater than current fuel load --> @total_Fuel 200 + (A:Fuel Total Quantity, gallons) @fuel_Weight * < if{ 2 (>G:Var6) 100 (>L:RATE_TANK_AUX_RIGHT, number) 100 (>L:RATE_TANK_AUX_LEFT, number) 100 (>L:RATE_TANK_EXTERNAL1, number) 100 (>L:RATE_TANK_EXTERNAL2, number) 100 (>L:RATE_TANK_MAIN_LEFT, number) 100 (>L:RATE_TANK_MAIN_RIGHT, number) 100 (>L:RATE_TANK_CENTER, number) 100 (>L:RATE_TANK_CENTER2, number) -100 (>L:RATE_TANK_CENTER3, number) 100 (>L:RATE_TANK_TIP_LEFT, number) 100 (>L:RATE_TANK_TIP_RIGHT, number)
<!-- If Aux L/R are aux tanks, dump those first --> (A:Fuel Tank Left Aux Capacity, gallons) 0 > (A:Fuel Tank Left Aux Capacity, gallons) 0 > || (A:FUEL TANK LEFT AUX LEVEL, percent) 4 > (A:FUEL TANK RIGHT AUX LEVEL, percent) 4 > || && if{ 1 (>L:FUEL_DUMP_AUXL, bool) 1 (>L:FUEL_DUMP_AUXR, bool) } els{ 1 (>L:FUEL_DUMP_MAINL, bool) 1 (>L:FUEL_DUMP_MAINR, bool) }
<!-- If Center 1/2/3 are aux tanks, dump those first --> (A:Fuel Tank Center Capacity, gallons) 0 > (A:Fuel Tank Center2 Capacity, gallons) 0 > || (A:Fuel Tank Center3 Capacity, gallons) 0 > || (A:FUEL TANK CENTER LEVEL, percent) 4 > (A:FUEL TANK CENTER2 LEVEL, percent) 4 > || (A:FUEL TANK CENTER3 LEVEL, percent) 4 > || && if{ 1 (>L:FUEL_DUMP_AUXL, bool) 1 (>L:FUEL_DUMP_AUXR, bool) } els{ 1 (>L:FUEL_DUMP_MAINL, bool) 1 (>L:FUEL_DUMP_MAINR, bool) }
<!-- If Tip L/R are aux tanks, dump those first --> (A:Fuel Tank Left Tip Capacity, gallons) 0 > (A:Fuel Tank Left Tip Capacity, gallons) 0 > || (A:FUEL TANK LEFT TIP LEVEL, percent) 4 > (A:FUEL TANK RIGHT TIP LEVEL, percent) 4 > || && if{ 1 (>L:FUEL_DUMP_AUXL, bool) 1 (>L:FUEL_DUMP_AUXR, bool) } els{ 1 (>L:FUEL_DUMP_MAINL, bool) 1 (>L:FUEL_DUMP_MAINR, bool) }
}
<!-- If fuel loading has reached the Total Fuel value or has reached the fuel capacity, stop loading fuel --> (G:Var6) 1 == @total_Fuel (A:Fuel Total Quantity, gallons) @fuel_Weight * > ! (A:Fuel Total Quantity, gallons) 10 + (A:FUEL TOTAL CAPACITY, gallons) > || && if{ 0 (>L:FUEL_DUMP_MAINL, bool) 0 (>L:FUEL_DUMP_MAINR, bool) 0 (>L:FUEL_DUMP_AUXL, bool) 0 (>L:FUEL_DUMP_AUXR, bool) 0 (>G:Var6) @dumpaux (>L:RATE_TANK_AUX_RIGHT, number) @dumpaux (>L:RATE_TANK_AUX_LEFT, number) @dumpaux (>L:RATE_TANK_CENTER, number) @dumpaux (>L:RATE_TANK_CENTER2, number) @dumpaux (>L:RATE_TANK_CENTER3, number) @dumpaux (>L:RATE_TANK_TIP_RIGHT, number) @dumpaux (>L:RATE_TANK_TIP_LEFT, number) @dumpmain (>L:RATE_TANK_EXTERNAL1, number) @dumpmain (>L:RATE_TANK_EXTERNAL2, number) @dumpmain (>L:RATE_TANK_MAIN_LEFT, number) @dumpmain (>L:RATE_TANK_MAIN_RIGHT, number) }
<!-- If fuel dumping has reached the Total Fuel value or has reached 100 gallons, stop fuel dumping --> (G:Var6) 2 == @total_Fuel (A:Fuel Total Quantity, gallons) @fuel_Weight * < ! (A:Fuel Total Quantity, gallons) 100 < || && if{ 0 (>L:FUEL_DUMP_MAINL, bool) 0 (>L:FUEL_DUMP_MAINR, bool) 0 (>L:FUEL_DUMP_AUXL, bool) 0 (>L:FUEL_DUMP_AUXR, bool) 0 (>G:Var6) @dumpaux (>L:RATE_TANK_AUX_RIGHT, number) @dumpaux (>L:RATE_TANK_AUX_LEFT, number) @dumpaux (>L:RATE_TANK_CENTER, number) @dumpaux (>L:RATE_TANK_CENTER2, number) @dumpaux (>L:RATE_TANK_CENTER3, number) @dumpaux (>L:RATE_TANK_TIP_RIGHT, number) @dumpaux (>L:RATE_TANK_TIP_LEFT, number) @dumpmain (>L:RATE_TANK_EXTERNAL1, number) @dumpmain (>L:RATE_TANK_EXTERNAL2, number) @dumpmain (>L:RATE_TANK_MAIN_LEFT, number) @dumpmain (>L:RATE_TANK_MAIN_RIGHT, number) } } </Value> </Select> </Element>
<Element> <!-- extra String statement for variable testing --> <Position X="@xpos1" Y="40"/> <Text X="200" Y="14" Bright="Yes" Length="200" Font="@font_TRG" Color="@col_NAME" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>%((A:Title, string))%!s!</String> <!-- <String> %((A:GEAR CENTER STEER ANGLE PCT, percent))%!3.2f</String> --> </Text> </Element> <Element> <Visible> @types 1 > ! </Visible> <Position X="@xpos1" Y="55"/> <Text X="180" Y="14" Bright="Yes" Length="220" Font="@font_TRG" Color="@col_NAME" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>%((L:AC_Type, number))%{case}%{:5}@type6 %{:4}@type5%{:3}@type4%{:2}@type3%{:1}@type2%{:0}@type1%{End}</String> </Text> </Element> <Element> <Visible> @types 1 > </Visible> <Position X="@xpos1" Y="55"/> <Text X="180" Y="14" Bright="Yes" Length="220" Font="@font_TRG" Color="#267E77" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>%((L:AC_Type, number))%{case}%{:5}@type6 %{:4}@type5%{:3}@type4%{:2}@type3%{:1}@type2%{:0}@type1%{End}</String> </Text> </Element> <Element> <Position X="@xpos2" Y="56"/> <Text X="100" Y="13" Bright="Yes" Length="35" Font="@font_TRG" Color="#A52FF7" Adjust="Right" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>%((A:ATC airline, string))%!s! %((A:ATC flight number, string))%!s!</String> </Text> </Element> <Element> <Position X="@xpos1" Y="75"/> <Text X="195" Y="24" Bright="Yes" Length="100" Font="@font_TRG" Color="@col_HEAD" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>CalClassic Planner</String> </Text> </Element> <Element> <Position X="@xpos1" Y="103"/> <Text X="125" Y="@ysize" Bright="Yes" Length="33" Font="@font_TRG" Color="@col_NAME" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>Enter Distance:</String> </Text> </Element> <Element> <Position X="@xpos2" Y="103"/> <Text X="@xsizeval" Y="@ysize" Bright="Yes" Length="@xlenval" Font="@font_TRG" Color="#267E77" Adjust="Right" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>%((L:Distance, number))%!00004d! NM</String> </Text> </Element> <Element> <Position X="@xpos1" Y="125"/> <Text X="125" Y="@ysize" Bright="Yes" Length="19" Font="@font_TRG" Color="@col_NAME" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>Planned FF:</String> </Text> </Element> <Element> <Position X="@xpos2" Y="125"/> <Text X="@xsizeval" Y="@ysize" Bright="Yes" Length="@xlenval" Font="@font_TRG" Color="@col_VALUE" Adjust="Right" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>%(@pff)%!4d! PPH</String> </Text> </Element> <Element> <Position X="@xpos1" Y="150"/> <Text X="125" Y="14" Bright="Yes" Length="33" Font="@font_TRG" Color="@col_NAME" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>Power Setting:</String> </Text> </Element> <Element> <Visible> @num_Pwr 1 > ! </Visible> <Position X="45" Y="150"/> <Text X="160" Y="16" Bright="Yes" Length="160" Font="@font_TRG" Color="@col_VALUE" Adjust="Right" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>@pwr1</String> </Text> </Element> <Element> <Visible> @num_Pwr 1 > </Visible> <Position X="45" Y="150"/> <Text X="160" Y="16" Bright="Yes" Length="160" Font="@font_TRG" Color="#267E77" Adjust="Right" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>%((L:Pwr_Set, number))%{case}%{:1}@pwr2%{:0}@pwr1%{End}</String> </Text> </Element> <Element> <Position X="@xpos1" Y="175"/> <Text X="125" Y="@ysize" Bright="Yes" Length="33" Font="@font_TRG" Color="@col_NAME" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>Max Altitude:</String> </Text> </Element> <Element> <!-- Max Alt = Distance / (Planned TAS * .777) / 3 * 60 min/hr * Descent Rate + IAP Alt (see PT) or Cert Ceiling --> <Position X="@xpos2" Y="175"/> <Text X="@xsizeval" Y="@ysize" Bright="Yes" Length="@xlenval" Font="@font_TRG" Color="@col_NAME" Adjust="Right" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>FL%((L:Distance, number) (L:Planned TAS, number) / 0.2574 * @descrate * (L:IAP Altitude, number) + @cert_Ceil > )%{if}%(@cert_Ceil)%!0003d!%{else}%((L:Distance, number) (L:Planned TAS, number) / 0.02574 * @descrate * (L:IAP Altitude, number) 10 / + )%!002d!0%{end}</String> </Text> <!-- 1 / 0.777 /3 * 60 = 25.74, divide by 1000 for FL, = 0.2574. Divide this by 10 for Notepad display. --> </Element> <Element> <Position X="@xpos1" Y="200"/> <Text X="125" Y="@ysize" Bright="Yes" Length="19" Font="@font_TRG" Color="@col_NAME" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>Enter Dest IAP:</String> </Text> </Element> <Element> <Position X="@xpos2" Y="200"/> <Text X="@xsizeval" Y="@ysize" Bright="Yes" Length="@xlenval" Font="@font_TRG" Color="#267E77" Adjust="Right" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>FL%((L:IAP Altitude, number))%!0003d!</String> </Text> </Element>
<Element> <!-- Remainder of Notepad display for FSX compatibility --> <Position X="@xpos1" Y="225"/> <FormattedText X="228" Y="500" Font="@font_TRG" Adjust="left" FontSize="18" Tabs="0L,185R" LineSpacing="22" Color="#222222" Bright="Yes"> <Font FontSize="20"/> <Font FontSize="15"/> <Font FontSize="10"/> <Color Value="#FF0000"/> <!-- red --> <Color Value="#E78113"/> <!-- orange --> <Color Value="#267E77"/> <!-- green --> <Color Value="#ff00ff"/> <String> %(@adi 1 == @af 1 == @total_Fuel (A:Empty Weight, pounds) (L:Payload, number) + + @mtow_Dry <= && && )%{if}ADI/AF NR%{end} %(@adi 1 == @af 0 == @total_Fuel (A:Empty Weight, pounds) (L:Payload, number) + + @mtow_Dry <= && && )%{if}ADI NR%{end} %(@adi 0 == @af 1 == @total_Fuel (A:Empty Weight, pounds) (L:Payload, number) + + @mtow_Dry <= && && )%{if}AF NR%{end} %(@adi 1 == @af 1 == @total_Fuel (A:Empty Weight, pounds) (L:Payload, number) + + @mtow_Dry >= && && )%{if}\{clr3}USE ADI/AF\{clr1}%{end} %(@adi 1 == @af 0 == @total_Fuel (A:Empty Weight, pounds) (L:Payload, number) + + @mtow_Dry >= && && )%{if}\{clr3}USE ADI\{clr1}%{end} %(@adi 0 == @af 1 == @total_Fuel (A:Empty Weight, pounds) (L:Payload, number) + + @mtow_Dry >= && && )%{if}\{clr3}USE AF\{clr1}%{end} %((A:RECIP MIXTURE RATIO:1, percent) 8.30 == ! (A:RECIP MIXTURE RATIO:1, percent) 0 == ! && )%{if}\{fnt2}\{clr2} Use Automixture!\{fnt}\{clr1}\n%{else}\n%{end} \{lsp=10}\{line=175}\n Route Fuel:\t%(@route_Fuel)%!5d! lbs\n Hdwind Fuel:\t%(@hdwind_Fuel)%!5d! lbs\n Hold Fuel:\t%(@hold_Fuel)%!5d! lbs\n Divert Fuel:\t%(@divert_Fuel)%!5d! lbs\n Total Fuel:\t%((A:GENERAL ENG1 COMBUSTION, bool) ! (A:GENERAL ENG2 COMBUSTION, bool) ! (A:GENERAL ENG3 COMBUSTION, bool) ! (A:GENERAL ENG4 COMBUSTION, bool) ! && && && (A:SIM ON GROUND, bool) && (A:BRAKE PARKING POSITION, bool) && )%{if}\{clr4}%{end}%(@total_Fuel)%!5d! lbs\{clr1}\n Fuel Capac.:\t%(@total_Fuel (A:Fuel Total Capacity, gallons) @fuel_Weight * > )%{if}\{clr2}%{end}%((A:Fuel Total Capacity, gallons) @fuel_Weight * )%!5d! lbs\{clr1}\n Payload:\t%(@total_Fuel (A:Empty Weight, pounds) (L:Payload, number) + + @mtow > @reserve_Fuel (A:Empty Weight, pounds) (L:Payload, number) + + @mlw > (A:Empty Weight, pounds) (L:Payload, number) + @zfw > || || )%{if}\{clr2}%{end}%((L:Payload, number))%!5d! lbs\{clr1}\n Max Payload:\t%((L:Max Payload, number))%!5d! lbs\n \{lsp=30}\{tabs=0L,53L,113L,162L}\{clr2}\{fnt2} %(@total_Fuel (A:Fuel Total Capacity, gallons) @fuel_Weight * > )%{if}Capacity! %{end} %(@total_Fuel (A:Empty Weight, pounds) (L:Payload, number) + + @mtow > )%{if}MTOW! %{end} %(@reserve_Fuel (A:Empty Weight, pounds) (L:Payload, number) + + @mlw > )%{if}MLW! %{end} %((A:Empty Weight, pounds) (L:Payload, number) + @zfw > )%{if}ZFW!%{end} </String> </FormattedText> </Element>
<Mouse>
<!-- Toggle on/off -->
<Area Left="170" Width="96" Height="96"> <Tooltip>Close</Tooltip> <Cursor Type="Hand"/> <Click>10070 (>K:PANEL_ID_TOGGLE)</Click> </Area>
<!-- Select Aircraft Type -->
<Area Left="20" Width="50" Height="96"> <Visible> @types 1 > </Visible> <Tooltip>Aircraft Select: %((L:AC_Type, number))%{case}%{:5}@type6 %{:4}@type5%{:3}@type4%{:2}@type3%{:1}@type2%{:0}@type1%{End}</Tooltip> <Cursor Type="Hand"/> <Click> @types 1 > if{ (L:AC_Type, number) @types 1 - < if{ (L:AC_Type, number) 1 + (>L:AC_Type, number) } els{ 0 (>L:AC_Type, number) } }</Click> </Area>
<!-- Switch between FE and Pilot's Notepad -->
<Area Left="80" Width="50" Height="96"> <Tooltip>FE Notepad</Tooltip> <Cursor Type="Hand"/> <Click> 10050 (>K:PANEL_ID_OPEN) 10060 (>K:PANEL_ID_CLOSE) 10070 (>K:PANEL_ID_CLOSE) </Click> </Area>
<!-- set Distance -->
<Area Left="132" Right="144" Top="53" Bottom="111"> <Cursor Type="UpArrow"/> <Click Repeat="Yes"> (L:Distance, number) (>L:Previous Distance, number) (L:Distance, number) 1000 + (>G:Var5) (G:Var5) 9999 > if{ (G:Var5) 10000 - (>L:Distance, number) } els{ (G:Var5) (>L:Distance, number) } @descendalt </Click> </Area> <Area Left="132" Right="144" Top="112" Bottom="135"> <Cursor Type="DOWNArrow"/> <Click Repeat="Yes"> (L:Distance, number) (>L:Previous Distance, number) (L:Distance, number) 1000 - (>G:Var5) (G:Var5) 000 < if{ (G:Var5) 10000 + (>L:Distance, number) } els{ (G:Var5) (>L:Distance, number) } @descendalt </Click> </Area>
<Area Left="145" Right="152" Top="53" Bottom="111"> <Cursor Type="UpArrow"/> <Click Repeat="Yes"> (L:Distance, number) (>L:Previous Distance, number) (L:Distance, number) 100 + (>G:Var5) (G:Var5) 1000 % 100 < if{ (G:Var5) 1000 - (>L:Distance, number) } els{ (G:Var5) (>L:Distance, number) } @descendalt </Click> </Area> <Area Left="145" Right="152" Top="112" Bottom="135"> <Cursor Type="DOWNArrow"/> <Click Repeat="Yes"> (L:Distance, number) (>L:Previous Distance, number) (L:Distance, number) 100 - (>G:Var5) (G:Var5) 1000 % 900 >= (G:Var5) 0 < || if{ (G:Var5) 1000 + (>L:Distance, number) } els{ (G:Var5) (>L:Distance, number) } @descendalt </Click> </Area>
<Area Left="153" Right="166" Top="53" Bottom="111"> <Cursor Type="UpArrow"/> <Click Repeat="Yes"> (L:Distance, number) (>L:Previous Distance, number) (L:Distance, number) 10 + (>G:Var5) (G:Var5) 100 % 0 == if{ (G:Var5) 100 - (>L:Distance, number) } els{ (G:Var5) (>L:Distance, number) } @descendalt </Click> </Area> <Area Left="153" Right="166" Top="112" Bottom="135"> <Cursor Type="DOWNArrow"/> <Click Repeat="Yes"> (L:Distance, number) (>L:Previous Distance, number) (L:Distance, number) 10 - (>G:Var5) (G:Var5) 100 % 90 == (G:Var5) 0 < || if{ (G:Var5) 100 + (>L:Distance, number) } els{ (G:Var5) (>L:Distance, number) } @descendalt </Click> </Area>
<!-- set IAP Altitude -->
<Area Left="167" Right="180" Top="150" Bottom="208"> <Cursor Type="UpArrow"/> <Click Repeat="Yes"> (L:IAP Altitude, number) 100 + (>G:Var5) (G:Var5) 999 > if{ (G:Var5) 1000 - (>L:IAP Altitude, number) } els{ (G:Var5) (>L:IAP Altitude, number) } @descendalt </Click> </Area> <Area Left="167" Right="180" Top="209" Bottom="232"> <Cursor Type="DOWNArrow"/> <Click Repeat="Yes"> (L:IAP Altitude, number) 100 - (>G:Var5) (G:Var5) 0 < if{ (G:Var5) 1000 + (>L:IAP Altitude, number) } els{ (G:Var5) (>L:IAP Altitude, number) } @descendalt </Click> </Area>
<Area Left="181" Right="194" Top="150" Bottom="208"> <Cursor Type="UpArrow"/> <Click Repeat="Yes"> (L:IAP Altitude, number) 10 + (>G:Var5) (G:Var5) 100 % 1 < if{ (G:Var5) 100 - (>L:IAP Altitude, number) } els{ (G:Var5) (>L:IAP Altitude, number) } @descendalt </Click> </Area> <Area Left="181" Right="194" Top="209" Bottom="232"> <Cursor Type="DOWNArrow"/> <Click Repeat="Yes"> (L:IAP Altitude, number) 10 - (>G:Var5) (G:Var5) 100 % 90 >= (G:Var5) 0 < || if{ (G:Var5) 100 + (>L:IAP Altitude, number) } els{ (G:Var5) (>L:IAP Altitude, number) } @descendalt </Click> </Area>
<!-- set Power Setting -->
<Area Left="40" Right="210" Top="131" Bottom="162"> <Visible> @num_Pwr 1 > </Visible> <Cursor Type="Hand"/> <Click> (L:Pwr_Set, number) 1 + (>L:Pwr_Set, number) (L:Pwr_Set, number) @num_Pwr 1 - > if{ 0 (>L:Pwr_Set, number) } @ptas (>L:Planned TAS, number) @pff (>L:Planned FF, number) @descendalt </Click> </Area>
<!-- set Fuel Load -->
<Area Left="40" Right="210" Top="340" Bottom="360"> <Visible> (A:GENERAL ENG1 COMBUSTION, bool) ! (A:GENERAL ENG2 COMBUSTION, bool) ! (A:GENERAL ENG3 COMBUSTION, bool) ! (A:GENERAL ENG4 COMBUSTION, bool) ! && && && (A:SIM ON GROUND, bool) && (A:BRAKE PARKING POSITION, bool) && </Visible> <Tooltip>Click to add/subract fuel if current fuel (%((A:Fuel Total Quantity, gallons) @fuel_Weight * )%!d!) above/below Total Fuel</Tooltip> <Cursor Type="Hand"/> <Click>(A:GENERAL ENG1 COMBUSTION, bool) ! (A:GENERAL ENG2 COMBUSTION, bool) ! (A:GENERAL ENG3 COMBUSTION, bool) ! (A:GENERAL ENG4 COMBUSTION, bool) ! && && && (A:SIM ON GROUND, bool) && (A:BRAKE PARKING POSITION, bool) && if{ 1 (>G:Var6) } </Click> </Area>
<Area Left="40" Right="210" Top="340" Bottom="360"> <Visible> (A:GENERAL ENG1 COMBUSTION, bool) (A:GENERAL ENG2 COMBUSTION, bool) (A:GENERAL ENG3 COMBUSTION, bool) (A:GENERAL ENG4 COMBUSTION, bool) || || || (A:SIM ON GROUND, bool) ! || (A:BRAKE PARKING POSITION, bool) ! || </Visible> <Tooltip>To add/remove fuel engines must be stopped on the ground, and parking brake set</Tooltip> </Area>
</Mouse> </Gauge>
|
|