private void radModeBypass_CheckedChanged(object sender, System.EventArgs e)
        {
            if (!console.fwc_init || console.CurrentModel != Model.FLEX5000)
            {
                return;
            }
            if (radModeBypass.Checked)
            {
                if (FWCATU.AutoStatus == 1)
                {
                    FWCATU.AutoTuning(false);
                }
                if (FWCATU.Active)
                {
                    FWCATU.Activate(false);
                }

                if (FWC.old_atu == true)
                {
                    FWC.ATUSendCmd(9, 0, 0);   //prevent
                    Thread.Sleep(200);
                }
                else
                {
                    //Debug.WriteLine("setting antenna 1...");
                    FWCATU.SelectAntenna1();
                }
                current_tune_mode = FWCATUMode.Bypass;
                console.FWCATUBypass();
            }
            grpTune.Enabled = !radModeBypass.Checked;
        }
        private void radModeAuto_CheckedChanged(object sender, System.EventArgs e)
        {
            if (!console.fwc_init || console.CurrentModel != Model.FLEX5000)
            {
                return;
            }
            if (radModeAuto.Checked)
            {
                if (!FWCATU.Active)
                {
                    FWCATU.Activate(true);
                }
                if (FWCATU.AutoStatus == 0)
                {
                    FWCATU.AutoTuning(true);
                }

                if (FWC.old_atu == false)
                {
                    Debug.WriteLine("setting antenna 2...");
                    FWCATU.SelectAntenna2();
                }
                current_tune_mode = FWCATUMode.Automatic;
            }
        }
예제 #3
0
 private void radModeAuto_CheckedChanged(object sender, System.EventArgs e)
 {
     if (radModeAuto.Checked)
     {
         if (!FWCATU.Active)
         {
             FWCATU.Activate(true);
         }
         if (FWCATU.AutoStatus == 0)
         {
             FWCATU.AutoTuning(true);
         }
         current_tune_mode = FWCATUMode.Automatic;
     }
 }
예제 #4
0
 private void radModeBypass_CheckedChanged(object sender, System.EventArgs e)
 {
     if (radModeBypass.Checked)
     {
         if (FWCATU.AutoStatus == 1)
         {
             FWCATU.AutoTuning(false);
         }
         if (FWCATU.Active)
         {
             FWCATU.Activate(false);
         }
         FWC.ATUSendCmd(9, 0, 0);
         current_tune_mode = FWCATUMode.Bypass;
     }
     grpTune.Enabled = !radModeBypass.Checked;
 }