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

from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
from .........Internal.Types import DataType
from .........Internal.StructBase import StructBase
from .........Internal.ArgStruct import ArgStruct
from .........Internal.ArgSingleList import ArgSingleList
from .........Internal.ArgSingle import ArgSingle
from ......... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class DecimalCls: """Decimal commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("decimal", core, parent)
[docs] def set(self, longitude: float, latitude: float, altitude: float, vdbTransmitter=repcap.VdbTransmitter.Default) -> None: """SCPI: [SOURce<HW>]:BB:GBAS:VDB<CH>:MCONfig:LOCation:COORdinates:DECimal \n Snippet: driver.source.bb.gbas.vdb.mconfig.location.coordinates.decimal.set(longitude = 1.0, latitude = 1.0, altitude = 1.0, vdbTransmitter = repcap.VdbTransmitter.Default) \n Defines the coordinates of the ground station reference location in decimal format. \n :param longitude: float Range: -180 to 180 :param latitude: float Range: -90 to 90 :param altitude: float Range: -83886.07 to 83886.07 :param vdbTransmitter: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Vdb') """ param = ArgSingleList().compose_cmd_string(ArgSingle('longitude', longitude, DataType.Float), ArgSingle('latitude', latitude, DataType.Float), ArgSingle('altitude', altitude, DataType.Float)) vdbTransmitter_cmd_val = self._cmd_group.get_repcap_cmd_value(vdbTransmitter, repcap.VdbTransmitter) self._core.io.write(f'SOURce<HwInstance>:BB:GBAS:VDB{vdbTransmitter_cmd_val}:MCONfig:LOCation:COORdinates:DECimal {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class DecimalStruct(StructBase): """Response structure. Fields: \n - Longitude: float: float Range: -180 to 180 - Latitude: float: float Range: -90 to 90 - Altitude: float: float Range: -83886.07 to 83886.07""" __meta_args_list = [ ArgStruct.scalar_float('Longitude'), ArgStruct.scalar_float('Latitude'), ArgStruct.scalar_float('Altitude')] def __init__(self): StructBase.__init__(self, self) self.Longitude: float = None self.Latitude: float = None self.Altitude: float = None
[docs] def get(self, vdbTransmitter=repcap.VdbTransmitter.Default) -> DecimalStruct: """SCPI: [SOURce<HW>]:BB:GBAS:VDB<CH>:MCONfig:LOCation:COORdinates:DECimal \n Snippet: value: DecimalStruct = driver.source.bb.gbas.vdb.mconfig.location.coordinates.decimal.get(vdbTransmitter = repcap.VdbTransmitter.Default) \n Defines the coordinates of the ground station reference location in decimal format. \n :param vdbTransmitter: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Vdb') :return: structure: for return value, see the help for DecimalStruct 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:DECimal?', self.__class__.DecimalStruct())