示例#1
0
        public virtual string GetDataRow()
        {
            return(String.Join(",", new[]
            {
                FullTimeMode?Time.ToString() : Time.TotalSeconds.ToString(CultureInfo.InvariantCulture),
                    TRT.ToString(),
                    RPM.ToString(),
                    RPM40.ToString(),
                    RPM_GBC_RT.ToString(),
                    UFRXX.ToString(),
                    SSM.ToString(),
                    TWAT.ToString(),
                    TAIR.ToString(),
                    ALF.ToString("0.#", CultureInfo.InvariantCulture),
                    AFR.ToString("0.#", CultureInfo.InvariantCulture),
                    LC1_ALF.ToString("0.###", CultureInfo.InvariantCulture),
                    LC1_AFR.ToString("0.#", CultureInfo.InvariantCulture),
                    COEFF.ToString("0.###", CultureInfo.InvariantCulture),
                    DGTC_RICH.ToString("0.###", CultureInfo.InvariantCulture),
                    DGTC_LEAN.ToString("0.###", CultureInfo.InvariantCulture),
                    UOZ.ToString("0.#", CultureInfo.InvariantCulture),
                    KUOZ1.ToString("0.#", CultureInfo.InvariantCulture),
                    KUOZ2.ToString("0.#", CultureInfo.InvariantCulture),
                    KUOZ3.ToString("0.#", CultureInfo.InvariantCulture),
                    KUOZ4.ToString("0.#", CultureInfo.InvariantCulture),
                    Faza.ToString(),
                    INJ.ToString("0.###", CultureInfo.InvariantCulture),
                    FUSE.ToString("0.#", CultureInfo.InvariantCulture),
                    AIR.ToString("0.#", CultureInfo.InvariantCulture),
                    GBC.ToString("0.##", CultureInfo.InvariantCulture),
                    SPD.ToString(),
                    ADCKNOCK.ToString("0.###", CultureInfo.InvariantCulture),
                    ADCMAF.ToString("0.###", CultureInfo.InvariantCulture),
                    ADCTWAT.ToString("0.###", CultureInfo.InvariantCulture),
                    ADCTAIR.ToString("0.###", CultureInfo.InvariantCulture),
                    ADCTPS.ToString("0.###", CultureInfo.InvariantCulture),
                    ADCUBAT.ToString("0.###", CultureInfo.InvariantCulture),
                    ADCLAM.ToString("0.###", CultureInfo.InvariantCulture),
                    ErrorCount.ToString(),
                    fSTOP ? "1" : "0",
                    fXX ? "1" : "0",
                    fXXPrev ? "1" : "0",
                    fXXFix ? "1" : "0",
                    fPOW ? "1" : "0",
                    fFUELOFF ? "1" : "0",
                    fDETZONE ? "1" : "0",
                    fDET ? "1" : "0",
                    fADS ? "1" : "0",
                    fLAMREG ? "1" : "0",
                    fLAM ? "1" : "0",
                    fLEARN ? "1" : "0",
                    fLAMRDY ? "1" : "0",
                    fLAMHEAT ? "1" : "0"
            }

                               ));
        }
示例#2
0
        public override string GenerateLogString()
        {
            var s = new StringBuilder();

            //s.Append(Time); s.Append('+'); s.Append(Time.Millisecond); s.Append(";");
            s.Append(TimeSpan.GetTotalMilliseconds()); s.Append(";");
            s.Append(RPM); s.Append(";");
            s.Append(Speed); s.Append(";");
            s.Append(Throttle.ToString("F2")); s.Append(";");
            s.Append(Pedal.ToString("F2")); s.Append(";");
            s.Append(AFR.ToString("F3")); s.Append(";");
            s.Append(WideBandLambda.ToString("F5")); s.Append(";");
            s.Append(IntakePressure); s.Append(";");
            s.Append(FuelPressure); s.Append(";");
            s.Append(OilPressure); s.Append(";");
            s.Append(IsMethanolInjecting ? 1 : 0); s.Append(";");
            s.Append(IsMethanolFailsafe ? 1 : 0); s.Append(";");
            s.Append(AirMass.ToString("F2")); s.Append(";");
            s.Append(AirMassPerStroke.ToString("F4")); s.Append(";");
            s.Append(IgnitionAngle.ToString("F3")); s.Append(";");
            s.Append(InjectionTime.ToString("F5")); s.Append(";");
            s.Append(OilTemp.ToString("F2")); s.Append(";");
            s.Append(OutsideTemp.ToString("F1")); s.Append(";");
            s.Append(IntakeTemp.ToString("F2")); s.Append(";");
            s.Append(IntakeTempAfterCooler.ToString("F2")); s.Append(";");
            s.Append(CoolerInTemp.ToString("F2")); s.Append(";");
            s.Append(CoolerOutTemp.ToString("F2")); s.Append(";");
            s.Append(CoolantTemp.ToString("F2")); s.Append(";");
            s.Append(CoolantRadiatorTemp.ToString("F2")); s.Append(";");
            s.Append(ElectricFanSpeed.ToString("F1")); s.Append(";");
            s.Append(ISAPWM_IS.ToString("F2")); s.Append(";");
            s.Append(ISAPWM_ISA.ToString("F2")); s.Append(";");
            s.Append(KnockSensor2.ToString("F5")); s.Append(";");
            s.Append(KnockSensor5.ToString("F5")); s.Append(";");
            s.Append(LambdaIntegrator1.ToString("F5")); s.Append(";");
            s.Append(LambdaIntegrator2.ToString("F5")); s.Append(";");
            s.Append(LambdaHeatingAfterCats1.ToString("F2")); s.Append(";");
            s.Append(LambdaHeatingAfterCats2.ToString("F2")); s.Append(";");
            s.Append(LambdaHeatingBeforeCats1.ToString("F2")); s.Append(";");
            s.Append(LambdaHeatingBeforeCats2.ToString("F2")); s.Append(";");
            s.Append(VanosPositionExhaust.ToString("F3")); s.Append(";");
            s.Append(VanosPositionIntake.ToString("F3")); s.Append(";");
            s.Append(AtmosphericPressure); s.Append(";");
            s.Append(VoltageBattery.ToString("F2")); s.Append(";");
            s.Append(VoltageKL15.ToString("F2")); s.Append(";");
            s.Append(Latitude.ToString("F6")); s.Append(";");
            s.Append(Longitude.ToString("F6")); s.Append(";");
            s.Append(Altitude.ToString("F1")); s.Append(";");
            //s.Append(SpeedGPS.ToString("F1")); s.Append(";");
            //s.Append(SpeedCalculated.ToString("F1")); s.Append(";");
            //s.Append(Gear.ToString("F1")); s.Append(";");
            s.Append("\n");
            return(s.ToString());
        }