Source code for RsSmbv.Implementations.Source.Bb.Gnss.Sv.Navic.Nmessage.Nav.Time.Conversion.Gps

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class GpsCls: """Gps commands group definition. 9 total commands, 4 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("gps", core, parent) @property def aone(self): """aone commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_aone'): from .Aone import AoneCls self._aone = AoneCls(self._core, self._cmd_group) return self._aone @property def atwo(self): """atwo commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_atwo'): from .Atwo import AtwoCls self._atwo = AtwoCls(self._core, self._cmd_group) return self._atwo @property def azero(self): """azero commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_azero'): from .Azero import AzeroCls self._azero = AzeroCls(self._core, self._cmd_group) return self._azero @property def tot(self): """tot commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_tot'): from .Tot import TotCls self._tot = TotCls(self._core, self._cmd_group) return self._tot
[docs] def get_wnot(self) -> int: """SCPI: [SOURce<HW>]:BB:GNSS:SV:NAVic:NMESsage:NAV:TIME:CONVersion:GPS:WNOT \n Snippet: value: int = driver.source.bb.gnss.sv.navic.nmessage.nav.time.conversion.gps.get_wnot() \n Sets the WNot parameter. \n :return: wnot: integer Range: 0 to 529947 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:SV:NAVic:NMESsage:NAV:TIME:CONVersion:GPS:WNOT?') return Conversions.str_to_int(response)
[docs] def set_wnot(self, wnot: int) -> None: """SCPI: [SOURce<HW>]:BB:GNSS:SV:NAVic:NMESsage:NAV:TIME:CONVersion:GPS:WNOT \n Snippet: driver.source.bb.gnss.sv.navic.nmessage.nav.time.conversion.gps.set_wnot(wnot = 1) \n Sets the WNot parameter. \n :param wnot: integer Range: 0 to 529947 """ param = Conversions.decimal_value_to_str(wnot) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SV:NAVic:NMESsage:NAV:TIME:CONVersion:GPS:WNOT {param}')
def clone(self) -> 'GpsCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = GpsCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group