コード例 #1
0
ファイル: ProcessorPanel.cs プロジェクト: zloiia/sdrsrc
 public ProcessorPanel(NoiseBlankerProcessor processor)
 {
     this._processor = processor;
       this.InitializeComponent();
       this.enableCheckBox.Checked = this._processor.Enabled;
       this.thresholdTrackBar.Value = this._processor.NoiseThreshold;
       this.pulseWidthTrackBar.Value = (int) (this._processor.PulseWidth * 10.0);
       this.thresholdTrackBar_Scroll((object) null, (EventArgs) null);
       this.pulseWidthTrackBar_Scroll((object) null, (EventArgs) null);
 }
コード例 #2
0
ファイル: NoiseBlankerPlugin.cs プロジェクト: zloiia/sdrsrc
 public void Initialize(ISharpControl control)
 {
     this._control = control;
       this._processor = new NoiseBlankerProcessor();
       this._processor.Enabled = Utils.GetBooleanSetting("NBEnabled");
       this._processor.NoiseThreshold = Utils.GetIntSetting("NBThreshold", 80);
       this._processor.PulseWidth = Utils.GetDoubleSetting("NBPulseWidth", 10.0);
       this._guiControl = new ProcessorPanel(this._processor);
       this._control.RegisterStreamHook((object) this._processor, ProcessorType.RawIQ);
 }
コード例 #3
0
 public void Initialize(ISharpControl control)
 {
     this._control                  = control;
     this._processor                = new NoiseBlankerProcessor();
     this._processor.Enabled        = Utils.GetBooleanSetting("NBEnabled");
     this._processor.NoiseThreshold = Utils.GetIntSetting("NBThreshold", 80);
     this._processor.PulseWidth     = Utils.GetDoubleSetting("NBPulseWidth", 10.0);
     this._guiControl               = new ProcessorPanel(this._processor);
     this._control.RegisterStreamHook(this._processor, ProcessorType.RawIQ);
 }
コード例 #4
0
 public ProcessorPanel(NoiseBlankerProcessor processor)
 {
     this._processor = processor;
     this.InitializeComponent();
     this.enableCheckBox.Checked   = this._processor.Enabled;
     this.thresholdTrackBar.Value  = this._processor.NoiseThreshold;
     this.pulseWidthTrackBar.Value = (int)(this._processor.PulseWidth * 10.0);
     this.thresholdTrackBar_Scroll(null, null);
     this.pulseWidthTrackBar_Scroll(null, null);
 }
コード例 #5
0
        public ProcessorPanel(NoiseBlankerProcessor processor)
        {
            _processor = processor;

            InitializeComponent();

            enableCheckBox.Checked = _processor.Enabled;
            thresholdTrackBar.Value = _processor.NoiseThreshold;
            pulseWidthTrackBar.Value = (int) (_processor.PulseWidth * 10.0);

            thresholdTrackBar_Scroll(null, null);
            pulseWidthTrackBar_Scroll(null, null);
        }
コード例 #6
0
 public ProcessorPanel(NoiseBlankerProcessor processor)
 {
     _processor = processor;
 }