Source code for RsSmw.Implementations.Source.Bb.Gnss.Svid.Navic.Sdynamics.Profile

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 ProfileCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, profile: enums.Doppler, satelliteSvid=repcap.SatelliteSvid.Default) -> None: """ ``[SOURce<HW>]:BB:GNSS:SVID<CH>:NAVic:SDYNamics:PROFile`` \n Snippet: ``driver.source.bb.gnss.svid.navic.sdynamics.profile.set(profile = enums.Doppler.CONStant, satelliteSvid = repcap.SatelliteSvid.Default)`` \n Selects the dynamics profile type. :param profile: CONStant | HIGH CONStant Constant velocity as set with the method ``RsSmw.source.bb.gnss.svid.gps.sdynamics.velocity.set()`` . HIGH Profiles with higher-order dynamics as set with the method ``RsSmw.source.bb.gnss.svid.gps.sdynamics.config.set()`` . :param satelliteSvid: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Svid') """ param = Conversions.enum_scalar_to_str(profile, enums.Doppler) 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}:NAVic:SDYNamics:PROFile {param}')
# noinspection PyTypeChecker
[docs] def get(self, satelliteSvid=repcap.SatelliteSvid.Default) -> enums.Doppler: """ ``[SOURce<HW>]:BB:GNSS:SVID<CH>:NAVic:SDYNamics:PROFile`` \n Snippet: ``value: enums.Doppler = driver.source.bb.gnss.svid.navic.sdynamics.profile.get(satelliteSvid = repcap.SatelliteSvid.Default)`` \n Selects the dynamics profile type. :param satelliteSvid: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Svid') :return: profile: CONStant | HIGH CONStant Constant velocity as set with the method ``RsSmw.source.bb.gnss.svid.gps.sdynamics.velocity.set()`` . HIGH Profiles with higher-order dynamics as set with the method ``RsSmw.source.bb.gnss.svid.gps.sdynamics.config.set()`` . """ 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}:NAVic:SDYNamics:PROFile?') return Conversions.str_to_scalar_enum(response, enums.Doppler)