from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TxCls:
"""
| Commands in total: 6
| Subgroups: 2
| Direct child commands: 3
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("tx", core, parent)
@property
def antenna(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_antenna'):
from .Antenna import AntennaCls
self._antenna = AntennaCls(self._core, self._cmd_group)
return self._antenna
@property
def coordinates(self):
"""
| Commands in total: 2
| Subgroups: 1
| 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_heading(self) -> float:
"""
``[SOURce<HW>]:FSIMulator:DSSimulation:SHIPtoship:TX:HEADing`` \n
Snippet: ``value: float = driver.source.fsimulator.dsSimulation.shiptoship.tx.get_heading()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:DSSimulation:SHIPtoship:TX:HEADing?')
return Conversions.str_to_float(response)
[docs]
def set_heading(self, heading: float) -> None:
"""
``[SOURce<HW>]:FSIMulator:DSSimulation:SHIPtoship:TX:HEADing`` \n
Snippet: ``driver.source.fsimulator.dsSimulation.shiptoship.tx.set_heading(heading = 1.0)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(heading)
self._core.io.write(f'SOURce<HwInstance>:FSIMulator:DSSimulation:SHIPtoship:TX:HEADing {param}')
[docs]
def get_speed(self) -> float:
"""
``[SOURce<HW>]:FSIMulator:DSSimulation:SHIPtoship:TX:SPEed`` \n
Snippet: ``value: float = driver.source.fsimulator.dsSimulation.shiptoship.tx.get_speed()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:DSSimulation:SHIPtoship:TX:SPEed?')
return Conversions.str_to_float(response)
[docs]
def set_speed(self, speed: float) -> None:
"""
``[SOURce<HW>]:FSIMulator:DSSimulation:SHIPtoship:TX:SPEed`` \n
Snippet: ``driver.source.fsimulator.dsSimulation.shiptoship.tx.set_speed(speed = 1.0)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(speed)
self._core.io.write(f'SOURce<HwInstance>:FSIMulator:DSSimulation:SHIPtoship:TX:SPEed {param}')
# noinspection PyTypeChecker
[docs]
def get_type_py(self) -> enums.FadDssVehTypeShip:
"""
``[SOURce<HW>]:FSIMulator:DSSimulation:SHIPtoship:TX:TYPE`` \n
Snippet: ``value: enums.FadDssVehTypeShip = driver.source.fsimulator.dsSimulation.shiptoship.tx.get_type_py()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:DSSimulation:SHIPtoship:TX:TYPE?')
return Conversions.str_to_scalar_enum(response, enums.FadDssVehTypeShip)
[docs]
def set_type_py(self, ship_type: enums.FadDssVehTypeShip) -> None:
"""
``[SOURce<HW>]:FSIMulator:DSSimulation:SHIPtoship:TX:TYPE`` \n
Snippet: ``driver.source.fsimulator.dsSimulation.shiptoship.tx.set_type_py(ship_type = enums.FadDssVehTypeShip.SCARrier)`` \n
No help available
"""
param = Conversions.enum_scalar_to_str(ship_type, enums.FadDssVehTypeShip)
self._core.io.write(f'SOURce<HwInstance>:FSIMulator:DSSimulation:SHIPtoship:TX:TYPE {param}')
def clone(self) -> 'TxCls':
"""
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 = TxCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group