Source code for RsSmbv.Implementations.Source.Bb.Gnss.AdGeneration.Glonass.Location

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


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

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

	@property
	def coordinates(self):
		"""
		| Commands in total: 5
		| Subgroups: 2
		| Direct child commands: 1
		"""
		if not hasattr(self, '_coordinates'):
			from .Coordinates import CoordinatesCls
			self._coordinates = CoordinatesCls(self._core, self._cmd_group)
		return self._coordinates

[docs] def get_uradius(self) -> int: """ ``[SOURce<HW>]:BB:GNSS:ADGeneration:GLONass:LOCation:URADius`` \n Snippet: ``value: int = driver.source.bb.gnss.adGeneration.glonass.location.get_uradius()`` \n Sets the Uncertainty Radius, i.e. sets the maximum radius of the area within which the two-dimensional location of the UE is bounded. :return: radius: integer Range: 0 to 1.E6 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:ADGeneration:GLONass:LOCation:URADius?') return Conversions.str_to_int(response)
[docs] def set_uradius(self, radius: int) -> None: """ ``[SOURce<HW>]:BB:GNSS:ADGeneration:GLONass:LOCation:URADius`` \n Snippet: ``driver.source.bb.gnss.adGeneration.glonass.location.set_uradius(radius = 1)`` \n Sets the Uncertainty Radius, i.e. sets the maximum radius of the area within which the two-dimensional location of the UE is bounded. :param radius: integer Range: 0 to 1.E6 """ param = Conversions.decimal_value_to_str(radius) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:ADGeneration:GLONass:LOCation:URADius {param}')
def clone(self) -> 'LocationCls': """ 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 = LocationCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group