Source code for RsSmw.Implementations.Source.Regenerator.Radar.Ota

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class OtaCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("ota", core, parent)

[docs] def get_offset(self) -> float: """ ``[SOURce<HW>]:REGenerator:RADar:OTA:OFFSet`` \n Snippet: ``value: float = driver.source.regenerator.radar.ota.get_offset()`` \n Sets the OTA (over-the-air) distance. :return: ota_offset: float Range: 0.01 to 50E3 """ response = self._core.io.query_str('SOURce<HwInstance>:REGenerator:RADar:OTA:OFFSet?') return Conversions.str_to_float(response)
[docs] def set_offset(self, ota_offset: float) -> None: """ ``[SOURce<HW>]:REGenerator:RADar:OTA:OFFSet`` \n Snippet: ``driver.source.regenerator.radar.ota.set_offset(ota_offset = 1.0)`` \n Sets the OTA (over-the-air) distance. :param ota_offset: float Range: 0.01 to 50E3 """ param = Conversions.decimal_value_to_str(ota_offset) self._core.io.write(f'SOURce<HwInstance>:REGenerator:RADar:OTA:OFFSet {param}')