1
0
Fork 0

FG1000: EIS display Emergency Bus, Standby Battery

For the moment the default publisher just uses the the
/systems/electrical/[volts|amps], but aircraft with better
electrical simulations can define their own publisher to
pass in correct data as required.
This commit is contained in:
Stuart Buchanan 2021-08-18 20:32:23 +01:00
parent c49c6a38c6
commit d363c35f4a
2 changed files with 5 additions and 2 deletions

View file

@ -50,9 +50,9 @@ var EIS =
me.setTextElement("RPMDisplay", sprintf("%i", engineData.RPM));
me.setTextElement("ManDisplay", sprintf("%.1f", engineData.Man));
me.setTextElement("MBusVolts", sprintf("%.01f", engineData.MBusVolts));
me.setTextElement("EBusVolts", sprintf("%.01f", engineData.MBusVolts)); # TODO: Include Emergency Bus
me.setTextElement("EBusVolts", sprintf("%.01f", engineData.EBusVolts));
me.setTextElement("MBattAmps", sprintf("%+.01f", engineData.MBattAmps));
me.setTextElement("SBattAmps", sprintf("%+.01f", engineData.MBattAmps)); # TODO: Include Emergency Bus
me.setTextElement("SBattAmps", sprintf("%+.01f", engineData.SBattAmps));
me._fuelFlowPointer.setValue(engineData.FuelFlowGPH);
me._oilPressurePointer.setValue(engineData.OilPressurePSI);

View file

@ -32,6 +32,9 @@ var GenericEISPublisher =
obj.addPropMap("RPM", "/engines/engine[0]/rpm");
obj.addPropMap("Man", "/engines/engine[0]/mp-osi");
obj.addPropMap("MBusVolts", "/systems/electrical/volts");
obj.addPropMap("EBusVolts", "/systems/electrical/volts");
obj.addPropMap("MBattAmps", "/systems/electrical/amps");
obj.addPropMap("SBattAmps", "/systems/electrical/amps");
obj.addPropMap("EngineHours", "/engines/engine[0]/hours");
obj.addPropMap("FuelFlowGPH", "/engines/engine[0]/fuel-flow-gph");
obj.addPropMap("OilPressurePSI", "/engines/engine[0]/oil-pressure-psi");