Beispiel #1
0
 private void SwitchAFRMode()
 {
     // switch mode AFR/Lambda
     if (AfrViewMode == AFRViewType.AFRMode)
     {
         // rescale the gauge
         linearGauge2.MaxValue = 1.5F;
         linearGauge2.MinValue = 0.5F;
         linearGauge2.GaugeText = "λ ";
         labelControl11.Text = "λ";
         linearGauge2.NumberOfDecimals = 2;
         linearGauge2.NumberOfDivisions = 10;
         AfrViewMode = AFRViewType.LambdaMode;
         btnAFRFeedbackMap.Caption = "Show lambda feedback map";
         btnClearAFRFeedback.Caption = "Clear lambda feedback map";
     }
     else
     {
         linearGauge2.MaxValue = 20;
         linearGauge2.MinValue = 10;
         linearGauge2.GaugeText = "AFR ";
         labelControl11.Text = "AFR";
         linearGauge2.NumberOfDecimals = 1;
         AfrViewMode = AFRViewType.AFRMode;
         btnAFRFeedbackMap.Caption = "Show AFR feedback map";
         btnClearAFRFeedback.Caption = "Clear AFR feedback map";
     }
 }
Beispiel #2
0
 private void SetupMeasureAFRorLambda()
 {
     if (m_appSettings.MeasureAFRInLambda)
     {
         AfrViewMode = AFRViewType.LambdaMode;
         linearGauge2.MaxValue = 1.5F;
         linearGauge2.MinValue = 0.5F;
         linearGauge2.GaugeText = "λ ";
         labelControl11.Text = "λ";
         linearGauge2.NumberOfDecimals = 2;
         linearGauge2.NumberOfDivisions = 10;
         //
         btnAFRFeedbackMap.Caption = "Show lambda feedback map";
         btnClearAFRFeedback.Caption = "Clear lambda feedback map";
     }
     else
     {
         linearGauge2.MaxValue = 20;
         linearGauge2.MinValue = 10;
         linearGauge2.GaugeText = "AFR ";
         labelControl11.Text = "AFR";
         linearGauge2.NumberOfDecimals = 1;
         AfrViewMode = AFRViewType.AFRMode;
         btnAFRFeedbackMap.Caption = "Show AFR feedback map";
         btnClearAFRFeedback.Caption = "Clear AFR feedback map";
     }
 }