G36 Improvement Project

Does anyone know where I can find the XMLVars?

I am setting the copilot to check voltages with the following in the checklists:

    <!-- BUS 1 Voltages check -->
    <Checkpoint Id="PREFLIGHT_BUS1_VOLTS">
      <Clue name="Bus 1 should be not less than 23 volts"/>
      <CheckpointDesc SubjectTT="Battery 1 volts" ExpectationTT="Not less 23v" />
      <ForceCamera name="PFD" />
      <Test>
        <TestValue>
          <Operator OpType="LESS">
            <Val SimVarName="ELECTRICAL MAIN BUS VOLTAGE:1" Units="volts" />
						<Val Value="23" />
          </Operator>
        </TestValue>
				<Action Copilot="True" Condition="TestValueFalse" SpecialAction="WaitUntilTestValueValidated" />
        <Instrument Id="HTML:AS1000_PFD:Display"/>
      </Test>
    </Checkpoint>

When checking voltage of Bus 2 it should be Approx 2 volts less than Bus 1. I can do this with the following:

    <Checkpoint Id="PREFLIGHT_BUS2_VOLTS">
      <Clue name="Bus 2 should be approximately 2 volts less than Bus 1"/>
      <CheckpointDesc SubjectTT="Battery 2 volts" ExpectationTT="2v less Bus 1"/>
      <ForceCamera name="PFD"/>
      <Test>
        <TestValue>
          <Operator OpType="LESS">
            <Val SimVarName="ELECTRICAL MAIN BUS VOLTAGE:2" Units="volts"/>
            <Val Value="21" />
          </Operator>
        </TestValue>
        <Action Copilot="True" Condition="TestValueFalse" SpecialAction="WaitUntilTestValueValidated"/>
        <Instrument Id="HTML:AS1000_PFD:Display"/>
      </Test>
    </Checkpoint>

But this assumes the voltage is over 23 for Bus 1; if however Bus 1 is under or over the second Bus voltage wouldn’t be 21.

Looking through Asobo’s code in /OneStore/fs-base-aircraft-common/CheckpointsLibrary/Asobo_DefaultCheckpointLibrary.xml there is the following:

<Val Code="(L:XMLVAR_STBYBattery_IsHeld) (A:ELECTRICAL BATTERY VOLTAGE:2, volts) 17.0 &gt; and"/>

I think this code is checking a variable so I’m close just not sure what the XMLVAR is for BUS1??