Re: [Hamlib-developer] Question on Frequency Adjustment with Rigctl
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: David B. <da...@ba...> - 2025-04-17 20:38:15
|
I would store the current frequency in your programme, then add the desired offset to your stored frequency. You will be updating the current radio frequency by polling the radio. Once you have the current frequency, add your desired offset, then send the desired frequency to the radio. You might want to check the frequency is in band first. 73 de David M0DGB/G8FKH From: Stefan Jansen <DK...@da...> Sent: 17 April 2025 19:12 To: Hamlib Developers Mailingliste <ham...@li...> Subject: Re: [Hamlib-developer] Question on Frequency Adjustment with Rigctl Hi David, hi list, First, let men introduce myself. I am Stefan, living in Germany and developing together with Richard on a piece of software that uses hamlib and mainly rigctl. Now back to the topic if this thread: David, it is clear that you do not have to query the current frequency before setting an arbitrary new value. But what if you want to just increase the current frequency by, let’s say, 1kHz? To do so, would you query the current frequency with the „f“ command, add 1000 to it and set the new value with „F“? Or is there a command to just increment or decrement the current frequency by a given step size? Vy 73 de Stefan, DK7STJ -- Stefan Jansen *** E-Mail: DK...@da...<mailto:DK...@da...> Am 17.04.2025 um 11:46 schrieb David Balharrie <da...@ba...<mailto:da...@ba...>>: You don't need to query the frequency from the radio before setting the frequency on the radio. 73 de David M0DGB/G8FKH -----Original Message----- From: Richard Emling <DO...@ho...<mailto:DO...@ho...>> Sent: 16 April 2025 21:02 To: ham...@li...<mailto:ham...@li...> Subject: [Hamlib-developer] Question on Frequency Adjustment with Rigctl Hi all, I have a general question about frequency adjustment. Thankfully, with the small 'f' command we can query the current frequency, and with the capital 'F' we can set a new one. I'm currently writing a script that changes the frequency in predefined steps—either increasing or decreasing it in a loop. My question is: Do I really have to query the current frequency from the rig during each loop iteration, add or subtract my step size, and then set the new value again? Or is there a more elegant or efficient way to do this? I think I read somewhere that it's possible to increment the frequency relative to the current setting. If that's true, how would I go about doing that? Any tips or pointers would be much appreciated! Best regards, -- 73 Richard, DO9RE _______________________________________________ Hamlib-developer mailing list Ham...@li...<mailto:Ham...@li...> https://lists.sourceforge.net/lists/listinfo/hamlib-developer _______________________________________________ Hamlib-developer mailing list Ham...@li...<mailto:Ham...@li...> https://lists.sourceforge.net/lists/listinfo/hamlib-developer |