Source code for RsSmw.Implementations.Source.Fsimulator.DsSimulation.TowerToAir.Trip

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


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

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

[docs] def get_duration(self) -> float: """ ``[SOURce<HW>]:FSIMulator:DSSimulation:TOWertoair:TRIP:DURation`` \n Snippet: ``value: float = driver.source.fsimulator.dsSimulation.towerToAir.trip.get_duration()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:DSSimulation:TOWertoair:TRIP:DURation?') return Conversions.str_to_float(response)
[docs] def get_length(self) -> float: """ ``[SOURce<HW>]:FSIMulator:DSSimulation:TOWertoair:TRIP:LENGth`` \n Snippet: ``value: float = driver.source.fsimulator.dsSimulation.towerToAir.trip.get_length()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:DSSimulation:TOWertoair:TRIP:LENGth?') return Conversions.str_to_float(response)