Source code for RsSmbv.Implementations.Source.Bb.Gbas.Vdb.Mconfig.Location.Coordinates.Dms

from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
from .........Internal.StructBase import StructBase
from .........Internal.ArgStruct import ArgStruct
from ......... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class DmsCls: """Dms commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("dms", core, parent) # noinspection PyTypeChecker
[docs] class DmsStruct(StructBase): """Structure for setting input parameters. Fields: \n - Longitude_Deg: int: integer Range: 0 to 180 - Longitude_Min: int: integer Defines the longitude minutes. Range: 0 to 59 - Longitude_Sec: float: float Defines the longitude seconds. Range: 0 to 59.999 - Longitude_Dir: str: EAST | WEST Defines the longitude direction. - Latitude_Deg: int: integer Defines the latitude degrees. Range: 0 to 90 - Latitude_Min: int: integer Defines the latitude minutes. Range: 0 to 59 - Latitude_Sec: float: float Defines the latitude seconds. Range: 0 to 59.999 - Latitude_Dir: str: NORTh | SOUTh Defines the latitude direction. - Altitude: float: float Defines the height above the ellipsoid (HAE) altitude. Range: -83886.07 to 83886.07""" __meta_args_list = [ ArgStruct.scalar_int('Longitude_Deg'), ArgStruct.scalar_int('Longitude_Min'), ArgStruct.scalar_float('Longitude_Sec'), ArgStruct.scalar_str('Longitude_Dir'), ArgStruct.scalar_int('Latitude_Deg'), ArgStruct.scalar_int('Latitude_Min'), ArgStruct.scalar_float('Latitude_Sec'), ArgStruct.scalar_str('Latitude_Dir'), ArgStruct.scalar_float('Altitude')] def __init__(self): StructBase.__init__(self, self) self.Longitude_Deg: int = None self.Longitude_Min: int = None self.Longitude_Sec: float = None self.Longitude_Dir: str = None self.Latitude_Deg: int = None self.Latitude_Min: int = None self.Latitude_Sec: float = None self.Latitude_Dir: str = None self.Altitude: float = None
[docs] def set(self, structure: DmsStruct, vdbTransmitter=repcap.VdbTransmitter.Default) -> None: """SCPI: [SOURce<HW>]:BB:GBAS:VDB<CH>:MCONfig:LOCation:COORdinates:DMS \n Snippet with structure: \n structure = driver.source.bb.gbas.vdb.mconfig.location.coordinates.dms.DmsStruct() \n structure.Longitude_Deg: int = 1 \n structure.Longitude_Min: int = 1 \n structure.Longitude_Sec: float = 1.0 \n structure.Longitude_Dir: str = 'abc' \n structure.Latitude_Deg: int = 1 \n structure.Latitude_Min: int = 1 \n structure.Latitude_Sec: float = 1.0 \n structure.Latitude_Dir: str = 'abc' \n structure.Altitude: float = 1.0 \n driver.source.bb.gbas.vdb.mconfig.location.coordinates.dms.set(structure, vdbTransmitter = repcap.VdbTransmitter.Default) \n Defines the coordinates of the ground station reference location in degrees, minutes and seconds. \n :param structure: for set value, see the help for DmsStruct structure arguments. :param vdbTransmitter: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Vdb') """ vdbTransmitter_cmd_val = self._cmd_group.get_repcap_cmd_value(vdbTransmitter, repcap.VdbTransmitter) self._core.io.write_struct(f'SOURce<HwInstance>:BB:GBAS:VDB{vdbTransmitter_cmd_val}:MCONfig:LOCation:COORdinates:DMS', structure)
[docs] def get(self, vdbTransmitter=repcap.VdbTransmitter.Default) -> DmsStruct: """SCPI: [SOURce<HW>]:BB:GBAS:VDB<CH>:MCONfig:LOCation:COORdinates:DMS \n Snippet: value: DmsStruct = driver.source.bb.gbas.vdb.mconfig.location.coordinates.dms.get(vdbTransmitter = repcap.VdbTransmitter.Default) \n Defines the coordinates of the ground station reference location in degrees, minutes and seconds. \n :param vdbTransmitter: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Vdb') :return: structure: for return value, see the help for DmsStruct structure arguments.""" vdbTransmitter_cmd_val = self._cmd_group.get_repcap_cmd_value(vdbTransmitter, repcap.VdbTransmitter) return self._core.io.query_struct(f'SOURce<HwInstance>:BB:GBAS:VDB{vdbTransmitter_cmd_val}:MCONfig:LOCation:COORdinates:DMS?', self.__class__.DmsStruct())