Re: [Hamlib-developer] Some questions about RFPOWER
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Black M. <mdb...@ya...> - 2024-12-28 22:26:48
|
get_level can return many different values -- that's why there's no tag. Since you know what you are asking for you also know what the answer is for. And yes...it does take a different parser or a call that can parse either format (which you can do in C). And can't change it since it's legacy code and would break backwards compatibility. Mike W9MDB On Saturday, December 28, 2024 at 10:03:47 AM CST, Sakari Nylund <sak...@ni...> wrote: Hi! 1) If I compare result from "get_freq" and "get_level" arises a question; Why the output is not similar? +\get_freq currVFO get_freq: currVFO Frequency: 10137820 RPRT 0 +\get_level currVFO RFPOWER get_level: currVFO:RFPOWER <--------expecting here 0.972549 <---------different format RPRT 0 Like this: get_level: currVFO RFPOWER: 0.972549 RPRT 0 Then the same parser could be used here as is in use with Freq and others. ---------------------------------------- 2) Is there some (legacy) reason that first I have to "get_level RFPOWER" and then put it to "power2mW <myRFPOWER> <myFERQ><myMODE>" to get the actual power ? All those are values rigctld knows by itself already. Could there be ready calculated result with command "get_level RFmW" in addition of existing commands? ---------------------------------------- HNY 2025! -- Saku OH1KH _______________________________________________ Hamlib-developer mailing list Ham...@li... https://lists.sourceforge.net/lists/listinfo/hamlib-developer |