Source code for RsSmw.Implementations.Source.Bb.Gnss.Receiver.V.Environment.Gsr.Galtitude

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


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

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

[docs] def set(self, ground_altitude: float, vehicle=repcap.Vehicle.Default) -> None: """ ``[SOURce<HW>]:BB:GNSS:RECeiver:[V<ST>]:ENVironment:GSR:GALTitude`` \n Snippet: ``driver.source.bb.gnss.receiver.v.environment.gsr.galtitude.set(ground_altitude = 1.0, vehicle = repcap.Vehicle.Default)`` \n Sets the altitude of the receiver according to the WGS84 geodetic system. :param ground_altitude: float Range: 0 to 10000 :param vehicle: optional repeated capability selector. Default value: Nr1 (settable in the interface 'V') """ param = Conversions.decimal_value_to_str(ground_altitude) vehicle_cmd_val = self._cmd_group.get_repcap_cmd_value(vehicle, repcap.Vehicle) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:RECeiver:V{vehicle_cmd_val}:ENVironment:GSR:GALTitude {param}')
[docs] def get(self, vehicle=repcap.Vehicle.Default) -> float: """ ``[SOURce<HW>]:BB:GNSS:RECeiver:[V<ST>]:ENVironment:GSR:GALTitude`` \n Snippet: ``value: float = driver.source.bb.gnss.receiver.v.environment.gsr.galtitude.get(vehicle = repcap.Vehicle.Default)`` \n Sets the altitude of the receiver according to the WGS84 geodetic system. :param vehicle: optional repeated capability selector. Default value: Nr1 (settable in the interface 'V') :return: ground_altitude: float Range: 0 to 10000 """ vehicle_cmd_val = self._cmd_group.get_repcap_cmd_value(vehicle, repcap.Vehicle) response = self._core.io.query_str(f'SOURce<HwInstance>:BB:GNSS:RECeiver:V{vehicle_cmd_val}:ENVironment:GSR:GALTitude?') return Conversions.str_to_float(response)