Source code for RsSmw.Implementations.Source.Bb.Gnss.Svid.Sbas.System

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums
from ....... import repcap


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

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

[docs] def set(self, sbas_system: enums.SbasSystem, satelliteSvid=repcap.SatelliteSvid.Default) -> None: """ ``[SOURce<HW>]:BB:GNSS:SVID<CH>:SBAS:SYSTem`` \n Snippet: ``driver.source.bb.gnss.svid.sbas.system.set(sbas_system = enums.SbasSystem.EGNOS, satelliteSvid = repcap.SatelliteSvid.Default)`` \n Maps the SBAS space vehicle, the pseudorandom number (PRN) , with the SBAS system. If a PRN is mapped to an SBAS, this PRN is not available in the other SBAS. :param sbas_system: EGNOS | WAAS | MSAS | GAGAN | NONE EGNOS | WAAS | MSAS | GAGAN SBAS available for mapping NONE Space vehicle is excluded from all SBAS constellations. :param satelliteSvid: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Svid') """ param = Conversions.enum_scalar_to_str(sbas_system, enums.SbasSystem) satelliteSvid_cmd_val = self._cmd_group.get_repcap_cmd_value(satelliteSvid, repcap.SatelliteSvid) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SVID{satelliteSvid_cmd_val}:SBAS:SYSTem {param}')
# noinspection PyTypeChecker
[docs] def get(self, satelliteSvid=repcap.SatelliteSvid.Default) -> enums.SbasSystem: """ ``[SOURce<HW>]:BB:GNSS:SVID<CH>:SBAS:SYSTem`` \n Snippet: ``value: enums.SbasSystem = driver.source.bb.gnss.svid.sbas.system.get(satelliteSvid = repcap.SatelliteSvid.Default)`` \n Maps the SBAS space vehicle, the pseudorandom number (PRN) , with the SBAS system. If a PRN is mapped to an SBAS, this PRN is not available in the other SBAS. :param satelliteSvid: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Svid') :return: sbas_system: EGNOS | WAAS | MSAS | GAGAN | NONE EGNOS | WAAS | MSAS | GAGAN SBAS available for mapping NONE Space vehicle is excluded from all SBAS constellations. """ satelliteSvid_cmd_val = self._cmd_group.get_repcap_cmd_value(satelliteSvid, repcap.SatelliteSvid) response = self._core.io.query_str(f'SOURce<HwInstance>:BB:GNSS:SVID{satelliteSvid_cmd_val}:SBAS:SYSTem?') return Conversions.str_to_scalar_enum(response, enums.SbasSystem)