FG1000: EIS Battery current display
This commit is contained in:
parent
3239f8664e
commit
1732f1339f
3 changed files with 14 additions and 9 deletions
|
@ -39,11 +39,11 @@
|
||||||
borderopacity="1.0"
|
borderopacity="1.0"
|
||||||
inkscape:pageopacity="0.0"
|
inkscape:pageopacity="0.0"
|
||||||
inkscape:pageshadow="2"
|
inkscape:pageshadow="2"
|
||||||
inkscape:zoom="2.3699065"
|
inkscape:zoom="3.3515539"
|
||||||
inkscape:cx="-66.126623"
|
inkscape:cx="24.554255"
|
||||||
inkscape:cy="450.5588"
|
inkscape:cy="351.5442"
|
||||||
inkscape:document-units="px"
|
inkscape:document-units="px"
|
||||||
inkscape:current-layer="EISGroup"
|
inkscape:current-layer="g5014"
|
||||||
showgrid="false"
|
showgrid="false"
|
||||||
inkscape:window-width="2488"
|
inkscape:window-width="2488"
|
||||||
inkscape:window-height="1376"
|
inkscape:window-height="1376"
|
||||||
|
@ -621,13 +621,15 @@
|
||||||
<path
|
<path
|
||||||
inkscape:connector-curvature="0"
|
inkscape:connector-curvature="0"
|
||||||
id="path5108"
|
id="path5108"
|
||||||
d="m 120.34531,335.65557 16.45634,0.21098"
|
d="m 120.34531,335.76106 h 16.45634"
|
||||||
style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
sodipodi:nodetypes="cc" />
|
||||||
<path
|
<path
|
||||||
style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
d="M 7.8936094,335.65557 24.34995,335.86655"
|
d="M 7.8936094,335.83098 H 24.34995"
|
||||||
id="path5110"
|
id="path5110"
|
||||||
inkscape:connector-curvature="0" />
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cc" />
|
||||||
<text
|
<text
|
||||||
id="text5112"
|
id="text5112"
|
||||||
y="359.64337"
|
y="359.64337"
|
||||||
|
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
|
@ -28,7 +28,7 @@ var EIS =
|
||||||
|
|
||||||
obj.setController(fg1000.EISController.new(obj, svg));
|
obj.setController(fg1000.EISController.new(obj, svg));
|
||||||
|
|
||||||
obj.addTextElements(["ManDisplay", "RPMDisplay", "MBusVolts", "EBusVolts"]);
|
obj.addTextElements(["ManDisplay", "RPMDisplay", "MBusVolts", "EBusVolts", "MBattAmps", "SBattAmps"]);
|
||||||
|
|
||||||
obj._fuelFlowPointer = PFD.PointerElement.new(obj.pageName, svg, "FuelFlowPointer", 0.0, 22.0, 135);
|
obj._fuelFlowPointer = PFD.PointerElement.new(obj.pageName, svg, "FuelFlowPointer", 0.0, 22.0, 135);
|
||||||
obj._oilPressurePointer = PFD.PointerElement.new(obj.pageName, svg, "OilPressurePointer", 0.0, 115.0, 135);
|
obj._oilPressurePointer = PFD.PointerElement.new(obj.pageName, svg, "OilPressurePointer", 0.0, 115.0, 135);
|
||||||
|
@ -51,6 +51,8 @@ var EIS =
|
||||||
me.setTextElement("ManDisplay", sprintf("%.1f", engineData.Man));
|
me.setTextElement("ManDisplay", sprintf("%.1f", engineData.Man));
|
||||||
me.setTextElement("MBusVolts", sprintf("%.01f", engineData.MBusVolts));
|
me.setTextElement("MBusVolts", sprintf("%.01f", engineData.MBusVolts));
|
||||||
me.setTextElement("EBusVolts", sprintf("%.01f", engineData.MBusVolts)); # TODO: Include Emergency Bus
|
me.setTextElement("EBusVolts", sprintf("%.01f", engineData.MBusVolts)); # TODO: Include Emergency Bus
|
||||||
|
me.setTextElement("MBattAmps", sprintf("%+.01f", engineData.MBattAmps));
|
||||||
|
me.setTextElement("SBattAmps", sprintf("%+.01f", engineData.MBattAmps)); # TODO: Include Emergency Bus
|
||||||
|
|
||||||
me._fuelFlowPointer.setValue(engineData.FuelFlowGPH);
|
me._fuelFlowPointer.setValue(engineData.FuelFlowGPH);
|
||||||
me._oilPressurePointer.setValue(engineData.OilPressurePSI);
|
me._oilPressurePointer.setValue(engineData.OilPressurePSI);
|
||||||
|
|
|
@ -41,6 +41,7 @@ var EISController =
|
||||||
"RPM",
|
"RPM",
|
||||||
"Man",
|
"Man",
|
||||||
"MBusVolts",
|
"MBusVolts",
|
||||||
|
"MBattAmps",
|
||||||
"EngineHours",
|
"EngineHours",
|
||||||
"FuelFlowGPH",
|
"FuelFlowGPH",
|
||||||
"OilPressurePSI",
|
"OilPressurePSI",
|
||||||
|
|
Loading…
Reference in a new issue