Hamlib / Hamlib

Ham radio control library for rigs, rotators, tuners, and amplifiers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python binding for power2mW

kyleboyle opened this issue · comments

How can the power2mW function be invoked from python binding? I don't see it exposed.

Are you using to the the transmit power level?
If so, take a look at RIG_LEVEL_RFPOWER_METER_WATTS

I'm testing with FT-710.. RFPOWER_METER_WATTS seems to always return 5.0. The RFPOWER level value seems to correspond with changing the RF Power setting on the radio (but it's not in a watt unit). Invoking power2mW via rigctl doesn't yield a matching value to the radios RF Power setting so this is probably a fruitless endeavour. The power2mW function is reporting the power level at 39.2 % of the radio's setting.

I'm not doing anything in python with this right now, the _Hamlib module just doesn't have the power2mW function. But this function doesn't appear to be doing anything useful anyway (for 710 at least)

RFPOWER_METER l RFPOWER_METER_WATTS l RFPOWER
0.050000
5.000000
0.392157

log.txt