Source code for RsSmw.Implementations.Source.Bb.Gnss.Time.Conversion.Beidou.Utc.Aone

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


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

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

[docs] def get_unscaled(self) -> float: """ ``[SOURce<HW>]:BB:GNSS:TIME:CONVersion:BEIDou:UTC:AONE:UNSCaled`` \n Snippet: ``value: float = driver.source.bb.gnss.time.conversion.beidou.utc.aone.get_unscaled()`` \n Sets the first order term of polynomial, A1. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:TIME:CONVersion:BEIDou:UTC:AONE:UNSCaled?') return Conversions.str_to_float(response)
[docs] def set_unscaled(self, a_1: float) -> None: """ ``[SOURce<HW>]:BB:GNSS:TIME:CONVersion:BEIDou:UTC:AONE:UNSCaled`` \n Snippet: ``driver.source.bb.gnss.time.conversion.beidou.utc.aone.set_unscaled(a_1 = 1.0)`` \n Sets the first order term of polynomial, A1. :param a_1: integer Range: -8388608 to 8388607 """ param = Conversions.decimal_value_to_str(a_1) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:TIME:CONVersion:BEIDou:UTC:AONE:UNSCaled {param}')
[docs] def get_value(self) -> int: """ ``[SOURce<HW>]:BB:GNSS:TIME:CONVersion:BEIDou:UTC:AONE`` \n Snippet: ``value: int = driver.source.bb.gnss.time.conversion.beidou.utc.aone.get_value()`` \n Sets the first order term of polynomial, A1. :return: aone: integer Range: -8388608 to 8388607 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:TIME:CONVersion:BEIDou:UTC:AONE?') return Conversions.str_to_int(response)
[docs] def set_value(self, aone: int) -> None: """ ``[SOURce<HW>]:BB:GNSS:TIME:CONVersion:BEIDou:UTC:AONE`` \n Snippet: ``driver.source.bb.gnss.time.conversion.beidou.utc.aone.set_value(aone = 1)`` \n Sets the first order term of polynomial, A1. :param aone: integer Range: -8388608 to 8388607 """ param = Conversions.decimal_value_to_str(aone) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:TIME:CONVersion:BEIDou:UTC:AONE {param}')