move device descriptions to owrx.source
This commit is contained in:
@ -1,5 +1,8 @@
|
||||
from .connector import ConnectorSource
|
||||
from owrx.command import Flag, Option
|
||||
from owrx.controllers.settings.device import SdrDeviceDescription
|
||||
from typing import List
|
||||
from owrx.form import Input, TextInput
|
||||
|
||||
|
||||
class RtlSdrSource(ConnectorSource):
|
||||
@ -10,3 +13,13 @@ class RtlSdrSource(ConnectorSource):
|
||||
.setBase("rtl_connector")
|
||||
.setMappings({"bias_tee": Flag("-b"), "direct_sampling": Option("-e")})
|
||||
)
|
||||
|
||||
|
||||
class RtlSdrDeviceDescription(SdrDeviceDescription):
|
||||
def getInputs(self) -> List[Input]:
|
||||
return [
|
||||
TextInput(
|
||||
"test",
|
||||
"This is a drill"
|
||||
),
|
||||
]
|
||||
|
Reference in New Issue
Block a user