¿ªÔÆÌåÓý

Step size in Reed's R1.5.1


 

After trying 3 different software versions on my V6 uBitX I have been using Reed's R1.5.1 sketch the most as I like the way it handles while being easy to read. However, I would like to change the minimum frequency step size from 50Hz to 10Hz. Searching the sketch I find StepSize mentioned only twice, and neither time does it reference a value. I realize the actual step size changes dynamically with tuning speed, which I've grown to like, but can I adjust that minimum somewhere?

=Vic=


Jack, W8TEE
 

Vic:

This is a crap shot, as I don't know the V6 ?BitX code, but around line 212 in setup is:

const SettingScreen_t ssLocalOsc PROGMEM = {
? SS_LOCAL_OSC_T,
? SS_LOCAL_OSC_A,
? 1,
? 50,
? ssLocalOscInitialize,
? ssLocalOscValidate,
? ssLocalOscChange,
? ssLocalOscFinalize
};

Try changing the value 50 above to 10 and see what happens. It things go up in smoke, I never sent this...

Jack, W8TEE


On Tuesday, March 21, 2023 at 02:40:04 PM EDT, Vic WA4THR via groups.io <vhklein@...> wrote:


After trying 3 different software versions on my V6 uBitX I have been using Reed's R1.5.1 sketch the most as I like the way it handles while being easy to read. However, I would like to change the minimum frequency step size from 50Hz to 10Hz. Searching the sketch I find StepSize mentioned only twice, and neither time does it reference a value. I realize the actual step size changes dynamically with tuning speed, which I've grown to like, but can I adjust that minimum somewhere?

=Vic=

--
Jack, W8TEE


 

Hi Vic,
in menu_main.cpp
you have a hard coded 50 that is a multiplier to the knob value.
I think this is what you are looking to change.? "Normal operation tuning frequency step size"

Rgds,
Gary


void mainMenuTune(int16_t knob)
{
? if(0 == knob){
? ? //Nothing to do - we're already set!
? ? return;
? }
?
? const uint32_t current_freq = GetActiveVfoFreq();
? const uint32_t new_freq = current_freq + (50 * knob);
??
? SetActiveVfoFreq(new_freq);
? autoSelectSidebandChanged(current_freq);
}


 

That's the spot, Gary. Mod made and working more to my liking, thanks!

=Vic=


 

Glad it worked out for you and many thanks for the confirmation.
Gary