Drive Lock Button

cLicari
Posts: 23
Joined: Mon Apr 10, 2017 9:33 pm
Location: North Texas

Drive Lock Button

Postby cLicari » Wed Sep 12, 2018 4:38 pm

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
Carl Licari
NX5T
User avatar
DL2XY
Posts: 25
Joined: Sun Jul 30, 2017 9:47 am

Re: Drive Lock Button

Postby DL2XY » Wed Sep 12, 2018 5:22 pm

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
cLicari
Posts: 23
Joined: Mon Apr 10, 2017 9:33 pm
Location: North Texas

Re: Drive Lock Button

Postby cLicari » Wed Sep 12, 2018 7:47 pm

I like to operate barefoot at times which make the PA gain limiter inconvenient.
Thx
Carl
NX5T
Carl Licari
NX5T
User avatar
DL2XY
Posts: 25
Joined: Sun Jul 30, 2017 9:47 am

Re: Drive Lock Button

Postby DL2XY » Sun Sep 16, 2018 11:38 am

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 606 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
Last edited by DL2XY on Sun Sep 16, 2018 12:16 pm, edited 1 time in total.
cLicari
Posts: 23
Joined: Mon Apr 10, 2017 9:33 pm
Location: North Texas

Re: Drive Lock Button

Postby cLicari » Sun Sep 16, 2018 12:04 pm

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
Carl Licari
NX5T

Return to “PowerSDR mRX”