public void ModulePostMain() { if (bInitDone) { wicoPower.CalcPower(); int engines = 0; engines = wicoPower.EnginesCount(); Echo("H Engines: " + engines.ToString()); if (engines > 0) { // Echo("Maxoutput=" + wicoPower.maxHydrogenPower.ToString() + " Current=" + wicoPower.currentEngineOutput.ToString()); var tanksfill = wicoPower.EnginesTanksFill(); Echo(" Tanks Filled=" + (tanksfill * 100).ToString() + "%"); } // ensure we run at least at slow speed for updates. _wicoControl.WantSlow(); _displays.EchoInfo(); Echo(wicoBases.baseInfoString().Trim()); } _wicoControl.AnnounceState(); Echo("LastRun=" + LastRunMs.ToString("0.00") + "ms Max=" + MaxRunMs.ToString("0.00") + "ms"); EchoInstructions(); }
public void ModulePostMain() { if (bInitDone) { int engines = 0; /* Testing hydrogen engine processing * double currentoutput = 0; * double maxoutput = 0; * engines = wicoEngines.CurrentOutput(ref currentoutput, ref maxoutput); * Echo("Engines: " + engines.ToString()); * if(engines>0) * { * Echo("XMaxoutput=" + maxoutput.ToString() + " Current=" + currentoutput.ToString()); * Echo("Tank Filled=" + (wicoEngines.tanksFill()*100).ToString() + "%"); * } */ wicoPower.CalcPower(); engines = wicoPower.EnginesCount(); Echo("H Engines: " + engines.ToString()); if (engines > 0) { // Echo("Maxoutput=" + wicoPower.maxHydrogenPower.ToString() + " Current=" + wicoPower.currentEngineOutput.ToString()); var tanksfill = wicoPower.EnginesTanksFill(); Echo(" Tanks Filled=" + (tanksfill * 100).ToString() + "%"); } } }
public void ModulePostMain() { if (bInitDone) { int engines = 0; /* Testing hydrogen engine processing * double currentoutput = 0; * double maxoutput = 0; * engines = wicoEngines.CurrentOutput(ref currentoutput, ref maxoutput); * Echo("Engines: " + engines.ToString()); * if(engines>0) * { * Echo("XMaxoutput=" + maxoutput.ToString() + " Current=" + currentoutput.ToString()); * Echo("Tank Filled=" + (wicoEngines.tanksFill()*100).ToString() + "%"); * } */ wicoPower.CalcPower(); engines = wicoPower.EnginesCount(); Echo("H Engines: " + engines.ToString()); if (engines > 0) { // Echo("Maxoutput=" + wicoPower.maxHydrogenPower.ToString() + " Current=" + wicoPower.currentEngineOutput.ToString()); var tanksfill = wicoPower.EnginesTanksFill(); Echo(" Tanks Filled=" + (tanksfill * 100).ToString() + "%"); } // ensure we run at least at slow speed for updates. _displays.EchoInfo(); } _wicoControl.WantSlow(); Echo("LastRun=" + LastRunMs.ToString("0.00") + "ms Max=" + MaxRunMs.ToString("0.00") + "ms"); EchoInstructions(); }