mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
add parameter map_ch0 to afedri driver, clean up infotext
This commit is contained in:
parent
f5bcbdc854
commit
bf8eb50c0b
|
|
@ -5,7 +5,7 @@ from owrx.form.input.validator import RangeValidator
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
|
|
||||||
AFEDRI_DEVICE_KEYS = ["rx_mode", "force_set_channel"]
|
AFEDRI_DEVICE_KEYS = ["rx_mode", "map_ch0"]
|
||||||
AFEDRI_PROFILE_KEYS = ["r820t_lna_agc", "r820t_mixer_agc"]
|
AFEDRI_PROFILE_KEYS = ["r820t_lna_agc", "r820t_mixer_agc"]
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -60,15 +60,16 @@ class AfedriDeviceDescription(SoapyConnectorDeviceDescription):
|
||||||
"Enable R820T Mixer AGC",
|
"Enable R820T Mixer AGC",
|
||||||
),
|
),
|
||||||
NumberInput(
|
NumberInput(
|
||||||
"force_set_channel",
|
"map_ch0",
|
||||||
"Use this channel instead of default when connect to master seed server.",
|
"Substitute channel 0",
|
||||||
"Number in range [0,3]",
|
infotext="Number in range [0,3]. Substitute SoapySDR channel 0 with a specific Afedri channel",
|
||||||
validator=RangeValidator(0, 3),
|
validator=RangeValidator(0, 3),
|
||||||
),
|
),
|
||||||
NumberInput(
|
NumberInput(
|
||||||
"rx_mode",
|
"rx_mode",
|
||||||
"RX Mode (Single/Dual/Quad Channel)",
|
"RX Mode (Single/Dual/Quad Channel)",
|
||||||
"Number in range [0,5]. Switch device to specific RX mode. (Single/DualDiversity/Dual/DiversityInternal/QuadDiversity/Quad)",
|
infotext="Number in range [0,5]. Switch the device to a specific RX mode. <br />"
|
||||||
|
+ "(0-Single 1-DualDiversity 2-Dual 3-DiversityInternal 4-QuadDiversity 5-Quad)",
|
||||||
validator=RangeValidator(0, 5),
|
validator=RangeValidator(0, 5),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue