示例#1
0
        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();
        }
示例#2
0
        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.
                _wicoControl.WantSlow();
                Echo(wicoBases.baseInfoString());
            }
        }
示例#3
0
 public void ModulePostMain()
 {
     _wicoControl.WantSlow();
     if (bInitDone)
     {
         _wicoDisplays.EchoInfo();
         _wicoControl.AnnounceState();
         Echo(wicoBases.baseInfoString());
     }
 }
示例#4
0
 public void ModulePostMain()
 {
     _wicoControl.WantSlow();
     Echo(wicoBases.baseInfoString());
 }