Page 1 of 1

Drive Lock Button

Posted: Wed Sep 12, 2018 4:38 pm
by cLicari
As a new Anan and PowerSDR OpenHPSDR mRX user I'm finding how easy it is to change settings by rolling over and touching the mouse wheel without realizing it. Most of these errors are no big deal and of little concern UNTIL, repeat, UNTIL you raise the drive power while using an amplifier. I would LOVE to see a Drive lock button implemented near the Drive slider to prevent an inadvertent Drive power change. Have any developers considered this before?

Thanks,
Carl
NX5T

Re: Drive Lock Button

Posted: Wed Sep 12, 2018 5:22 pm
by DL2XY
More likely you will forget to check the slider after a band or mode change...

If you want to get sure just adjust the PA-Gain setting according to max. amplifier input.

Regards Walter,
DL2XY

Re: Drive Lock Button

Posted: Wed Sep 12, 2018 7:47 pm
by cLicari
I like to operate barefoot at times which make the PA gain limiter inconvenient.
Thx
Carl
NX5T

Re: Drive Lock Button

Posted: Sun Sep 16, 2018 11:38 am
by DL2XY
ok, it would be quite simple to add this functionality to source-code.
In my personal build i implemented that in this way:

In console.cs add a DoubleClick-Event for lblPWR.

Code: Select all

  private void lblPWR_DoubleClick(object sender, EventArgs e) // DL2XY Drive PWR Lock
        {
            ptbPWR.Enabled = !ptbPWR.Enabled;               // Toggle slider enable state
            if (ptbPWR.Enabled) lblPWR.ForeColor = Color.White;    // change label color
            else lblPWR.ForeColor = Color.Red;
        }
 

Add appropriate ToolTip-text to lblPWR.


Drive PWR mod.jpg
Drive PWR mod.jpg (144.5 KiB) Viewed 5141 times


This will do what you expect.
One double click on the label will grey-out/lock the slider and turn the label color to red.
The next double click will restore normal slider function and label color.

Notes:
The state is not persistent, the slider is always unlocked after programmstart.
There are other funktions that may overwrite the drive level settings (Tune and Two Tone Test) if not set to "Use Drive Power" !
Profile switches will overide power setting with profile defined Power even if locked !

73 Walter
DL2XY

Re: Drive Lock Button

Posted: Sun Sep 16, 2018 12:04 pm
by cLicari
Thank you Walter! That's just what I was hoping for.
I don't write code or even know how to modify, but I'll try to figure it out.

Carl
NX5T