from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class VtoleranceCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("vtolerance", core, parent)
[docs]
def set(self, tolerance: float) -> None:
"""
``[SENSe]:CESTimation:VTOLerance`` \n
Snippet: ``driver.applications.k17Mcgd.sense.cestimation.vtolerance.set(tolerance = 1.0)`` \n
Defines an additional tolerance to the Max relative Satellite Velocity in %. This information is used to calculate the
Max Clock Offset.
:param tolerance: numeric value Unit: %
"""
param = Conversions.decimal_value_to_str(tolerance)
self._core.io.write(f'SENSe:CESTimation:VTOLerance {param}')
[docs]
def get(self) -> float:
"""
``[SENSe]:CESTimation:VTOLerance`` \n
Snippet: ``value: float = driver.applications.k17Mcgd.sense.cestimation.vtolerance.get()`` \n
Defines an additional tolerance to the Max relative Satellite Velocity in %. This information is used to calculate the
Max Clock Offset.
:return: tolerance: numeric value Unit: %
"""
response = self._core.io.query_str(f'SENSe:CESTimation:VTOLerance?')
return Conversions.str_to_float(response)