Source code for RsSmw.Implementations.Source.Bb.Gnss.Power

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


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

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

[docs] def get_reference(self) -> float: """ ``[SOURce<HW>]:BB:GNSS:POWer:REFerence`` \n Snippet: ``value: float = driver.source.bb.gnss.power.get_reference()`` \n Sets the power level that is used as a reference for the calculation of the power level of the satellites. :return: reference_power: float Range: -145 to 20 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:POWer:REFerence?') return Conversions.str_to_float(response)
[docs] def set_reference(self, reference_power: float) -> None: """ ``[SOURce<HW>]:BB:GNSS:POWer:REFerence`` \n Snippet: ``driver.source.bb.gnss.power.set_reference(reference_power = 1.0)`` \n Sets the power level that is used as a reference for the calculation of the power level of the satellites. :param reference_power: float Range: -145 to 20 """ param = Conversions.decimal_value_to_str(reference_power) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:POWer:REFerence {param}')