Ejemplo n.º 1
0
        private void simpleButton3_Click(object sender, EventArgs e)
        {
            // show autotune settings screen
            frmAutotuneSettings autotunesettings = new frmAutotuneSettings();

            autotunesettings.AcceptableTargetErrorPercentage = m_AcceptableTargetErrorPercentage;
            autotunesettings.AreaCorrectionPercentage        = m_AreaCorrectionPercentage;
            autotunesettings.AutoUpdateFuelMap                   = m_AutoUpdateFuelMap;
            autotunesettings.CellStableTime_ms                   = m_CellStableTime_ms;
            autotunesettings.IgnitionCellStableTime_ms           = m_IgnitionCellStableTime_ms;
            autotunesettings.MinimumEngineSpeedForIgnitionTuning = m_MinimumEngineSpeedForIgnitionTuning;
            autotunesettings.MaximumIgnitionAdvancePerSession    = m_MaximumIgnitionAdvancePerSession;
            autotunesettings.IgnitionAdvancePerCycle             = m_IgnitionAdvancePerCycle;
            autotunesettings.IgnitionRetardFirstKnock            = m_IgnitionRetardFirstKnock;
            autotunesettings.IgnitionRetardFurtherKnocks         = m_IgnitionRetardFurtherKnocks;
            autotunesettings.GlobalMaximumIgnitionAdvance        = m_GlobalMaximumIgnitionAdvance;
            autotunesettings.CorrectionPercentage                = m_CorrectionPercentage;
            autotunesettings.DiscardClosedThrottleMeasurements   = m_DiscardClosedThrottleMeasurements;
            autotunesettings.DiscardFuelcutMeasurements          = m_DiscardFuelcutMeasurements;
            autotunesettings.DisableClosedLoopOnStartAutotune    = m_DisableClosedLoopOnStartAutotune;
            autotunesettings.PlayCellProcessedSound              = m_PlayCellProcessedSound;
            autotunesettings.CapIgnitionMap      = m_CapIgnitionMap;
            autotunesettings.ResetFuelTrims      = m_ResetFuelTrims;
            autotunesettings.AllowIdleAutoTune   = m_allowIdleAutoTune;
            autotunesettings.EnrichmentFilter    = m_EnrichmentFilter;
            autotunesettings.FuelCutDecayTime_ms = m_FuelCutDecayTime_ms;
            autotunesettings.MaximumAdjustmentPerCyclePercentage = m_MaximumAdjustmentPerCyclePercentage;
            autotunesettings.MaximumAFRDeviance     = m_MaximumAFRDeviance;
            autotunesettings.MinimumAFRMeasurements = m_MinimumAFRMeasurements;
            if (autotunesettings.ShowDialog() == DialogResult.OK)
            {
                m_AcceptableTargetErrorPercentage = autotunesettings.AcceptableTargetErrorPercentage;
                m_AreaCorrectionPercentage        = autotunesettings.AreaCorrectionPercentage;
                m_AutoUpdateFuelMap                   = autotunesettings.AutoUpdateFuelMap;
                m_CellStableTime_ms                   = autotunesettings.CellStableTime_ms;
                m_IgnitionCellStableTime_ms           = autotunesettings.IgnitionCellStableTime_ms;
                m_MinimumEngineSpeedForIgnitionTuning = autotunesettings.MinimumEngineSpeedForIgnitionTuning;
                m_MaximumIgnitionAdvancePerSession    = autotunesettings.MaximumIgnitionAdvancePerSession;
                m_IgnitionAdvancePerCycle             = autotunesettings.IgnitionAdvancePerCycle;
                m_IgnitionRetardFirstKnock            = autotunesettings.IgnitionRetardFirstKnock;
                m_IgnitionRetardFurtherKnocks         = autotunesettings.IgnitionRetardFurtherKnocks;
                m_GlobalMaximumIgnitionAdvance        = autotunesettings.GlobalMaximumIgnitionAdvance;
                m_CorrectionPercentage                = autotunesettings.CorrectionPercentage;
                m_DisableClosedLoopOnStartAutotune    = autotunesettings.DisableClosedLoopOnStartAutotune;
                m_DiscardClosedThrottleMeasurements   = autotunesettings.DiscardClosedThrottleMeasurements;
                m_DiscardFuelcutMeasurements          = autotunesettings.DiscardFuelcutMeasurements;
                m_EnrichmentFilter    = autotunesettings.EnrichmentFilter;
                m_FuelCutDecayTime_ms = autotunesettings.FuelCutDecayTime_ms;
                m_MaximumAdjustmentPerCyclePercentage = autotunesettings.MaximumAdjustmentPerCyclePercentage;
                m_MaximumAFRDeviance     = autotunesettings.MaximumAFRDeviance;
                m_MinimumAFRMeasurements = autotunesettings.MinimumAFRMeasurements;
                m_allowIdleAutoTune      = autotunesettings.AllowIdleAutoTune;
                m_ResetFuelTrims         = autotunesettings.ResetFuelTrims;
                m_CapIgnitionMap         = autotunesettings.CapIgnitionMap;
                m_PlayCellProcessedSound = autotunesettings.PlayCellProcessedSound;
            }
            DialogResult = DialogResult.None;
        }
Ejemplo n.º 2
0
        private void simpleButton3_Click(object sender, EventArgs e)
        {
            // show autotune settings screen
            frmAutotuneSettings autotunesettings = new frmAutotuneSettings();
            autotunesettings.AcceptableTargetErrorPercentage = m_AcceptableTargetErrorPercentage;
            autotunesettings.AreaCorrectionPercentage = m_AreaCorrectionPercentage;
            autotunesettings.AutoUpdateFuelMap = m_AutoUpdateFuelMap;
            autotunesettings.CellStableTime_ms = m_CellStableTime_ms;
            autotunesettings.IgnitionCellStableTime_ms = m_IgnitionCellStableTime_ms;
            autotunesettings.MinimumEngineSpeedForIgnitionTuning = m_MinimumEngineSpeedForIgnitionTuning;
            autotunesettings.MaximumIgnitionAdvancePerSession = m_MaximumIgnitionAdvancePerSession;
            autotunesettings.IgnitionAdvancePerCycle = m_IgnitionAdvancePerCycle;
            autotunesettings.IgnitionRetardFirstKnock = m_IgnitionRetardFirstKnock;
            autotunesettings.IgnitionRetardFurtherKnocks = m_IgnitionRetardFurtherKnocks;
            autotunesettings.GlobalMaximumIgnitionAdvance = m_GlobalMaximumIgnitionAdvance;
            autotunesettings.CorrectionPercentage = m_CorrectionPercentage;
            autotunesettings.DiscardClosedThrottleMeasurements = m_DiscardClosedThrottleMeasurements;
            autotunesettings.DiscardFuelcutMeasurements = m_DiscardFuelcutMeasurements;
            autotunesettings.DisableClosedLoopOnStartAutotune = m_DisableClosedLoopOnStartAutotune;
            autotunesettings.PlayCellProcessedSound = m_PlayCellProcessedSound;
            autotunesettings.CapIgnitionMap = m_CapIgnitionMap;
            autotunesettings.ResetFuelTrims = m_ResetFuelTrims;
            autotunesettings.AllowIdleAutoTune = m_allowIdleAutoTune;
            autotunesettings.EnrichmentFilter = m_EnrichmentFilter;
            autotunesettings.FuelCutDecayTime_ms = m_FuelCutDecayTime_ms;
            autotunesettings.MaximumAdjustmentPerCyclePercentage = m_MaximumAdjustmentPerCyclePercentage;
            autotunesettings.MaximumAFRDeviance = m_MaximumAFRDeviance;
            autotunesettings.MinimumAFRMeasurements = m_MinimumAFRMeasurements;
            if (autotunesettings.ShowDialog() == DialogResult.OK)
            {
                m_AcceptableTargetErrorPercentage = autotunesettings.AcceptableTargetErrorPercentage;
                m_AreaCorrectionPercentage = autotunesettings.AreaCorrectionPercentage;
                m_AutoUpdateFuelMap = autotunesettings.AutoUpdateFuelMap;
                m_CellStableTime_ms = autotunesettings.CellStableTime_ms;
                m_IgnitionCellStableTime_ms = autotunesettings.IgnitionCellStableTime_ms;
                m_MinimumEngineSpeedForIgnitionTuning = autotunesettings.MinimumEngineSpeedForIgnitionTuning;
                m_MaximumIgnitionAdvancePerSession = autotunesettings.MaximumIgnitionAdvancePerSession;
                m_IgnitionAdvancePerCycle = autotunesettings.IgnitionAdvancePerCycle;
                m_IgnitionRetardFirstKnock = autotunesettings.IgnitionRetardFirstKnock;
                m_IgnitionRetardFurtherKnocks = autotunesettings.IgnitionRetardFurtherKnocks;
                m_GlobalMaximumIgnitionAdvance = autotunesettings.GlobalMaximumIgnitionAdvance;
                m_CorrectionPercentage = autotunesettings.CorrectionPercentage;
                m_DisableClosedLoopOnStartAutotune = autotunesettings.DisableClosedLoopOnStartAutotune;
                m_DiscardClosedThrottleMeasurements = autotunesettings.DiscardClosedThrottleMeasurements;
                m_DiscardFuelcutMeasurements = autotunesettings.DiscardFuelcutMeasurements;
                m_EnrichmentFilter = autotunesettings.EnrichmentFilter;
                m_FuelCutDecayTime_ms = autotunesettings.FuelCutDecayTime_ms;
                m_MaximumAdjustmentPerCyclePercentage = autotunesettings.MaximumAdjustmentPerCyclePercentage;
                m_MaximumAFRDeviance = autotunesettings.MaximumAFRDeviance;
                m_MinimumAFRMeasurements = autotunesettings.MinimumAFRMeasurements;
                m_allowIdleAutoTune = autotunesettings.AllowIdleAutoTune;
                m_ResetFuelTrims = autotunesettings.ResetFuelTrims;
                m_CapIgnitionMap = autotunesettings.CapIgnitionMap;
                m_PlayCellProcessedSound = autotunesettings.PlayCellProcessedSound;

            }
            DialogResult = DialogResult.None;
        }