from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class LocalizerCls:
"""
| Commands in total: 28
| Subgroups: 6
| Direct child commands: 3
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("localizer", core, parent)
@property
def comid(self):
"""
| Commands in total: 12
| Subgroups: 1
| Direct child commands: 10
"""
if not hasattr(self, '_comid'):
from .Comid import ComidCls
self._comid = ComidCls(self._core, self._cmd_group)
return self._comid
@property
def ddm(self):
"""
| Commands in total: 8
| Subgroups: 0
| Direct child commands: 8
"""
if not hasattr(self, '_ddm'):
from .Ddm import DdmCls
self._ddm = DdmCls(self._core, self._cmd_group)
return self._ddm
@property
def frequency(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_frequency'):
from .Frequency import FrequencyCls
self._frequency = FrequencyCls(self._core, self._cmd_group)
return self._frequency
@property
def icao(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_icao'):
from .Icao import IcaoCls
self._icao = IcaoCls(self._core, self._cmd_group)
return self._icao
@property
def llobe(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_llobe'):
from .Llobe import LlobeCls
self._llobe = LlobeCls(self._core, self._cmd_group)
return self._llobe
@property
def rlobe(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_rlobe'):
from .Rlobe import RlobeCls
self._rlobe = RlobeCls(self._core, self._cmd_group)
return self._rlobe
# noinspection PyTypeChecker
[docs]
def get_mode(self) -> enums.AvionicIlsLocMode:
"""
``[SOURce<HW>]:[BB]:ILS:LOCalizer:MODE`` \n
Snippet: ``value: enums.AvionicIlsLocMode = driver.source.bb.ils.localizer.get_mode()`` \n
Sets the operating mode for the ILS localizer modulation signal.
:return: mode: NORM | LLOBe | RLOBe NORM ILS localizer modulation is active. LLOBe Amplitude modulation of the output signal with the left lobe (90Hz) signal component of the ILS localizer signal is active. RLOBe Amplitude modulation of the output signal with the right lobe (150Hz) signal component of the ILS localizer signal is active.
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ILS:LOCalizer:MODE?')
return Conversions.str_to_scalar_enum(response, enums.AvionicIlsLocMode)
[docs]
def set_mode(self, mode: enums.AvionicIlsLocMode) -> None:
"""
``[SOURce<HW>]:[BB]:ILS:LOCalizer:MODE`` \n
Snippet: ``driver.source.bb.ils.localizer.set_mode(mode = enums.AvionicIlsLocMode.LLOBe)`` \n
Sets the operating mode for the ILS localizer modulation signal.
:param mode: NORM | LLOBe | RLOBe NORM ILS localizer modulation is active. LLOBe Amplitude modulation of the output signal with the left lobe (90Hz) signal component of the ILS localizer signal is active. RLOBe Amplitude modulation of the output signal with the right lobe (150Hz) signal component of the ILS localizer signal is active.
"""
param = Conversions.enum_scalar_to_str(mode, enums.AvionicIlsLocMode)
self._core.io.write(f'SOURce<HwInstance>:BB:ILS:LOCalizer:MODE {param}')
[docs]
def get_phase(self) -> float:
"""
``[SOURce<HW>]:[BB]:ILS:LOCalizer:PHASe`` \n
Snippet: ``value: float = driver.source.bb.ils.localizer.get_phase()`` \n
Sets the phase between the modulation signals of the left and right antenna lobe of the ILS localizer signal. The zero
crossing of the right lobe (150 Hz) signal serves as a reference. The angle refers to the period of the signal of the
right antenna lobe.
:return: phase: float Range: -60 to 120
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ILS:LOCalizer:PHASe?')
return Conversions.str_to_float(response)
[docs]
def set_phase(self, phase: float) -> None:
"""
``[SOURce<HW>]:[BB]:ILS:LOCalizer:PHASe`` \n
Snippet: ``driver.source.bb.ils.localizer.set_phase(phase = 1.0)`` \n
Sets the phase between the modulation signals of the left and right antenna lobe of the ILS localizer signal. The zero
crossing of the right lobe (150 Hz) signal serves as a reference. The angle refers to the period of the signal of the
right antenna lobe.
:param phase: float Range: -60 to 120
"""
param = Conversions.decimal_value_to_str(phase)
self._core.io.write(f'SOURce<HwInstance>:BB:ILS:LOCalizer:PHASe {param}')
[docs]
def get_sdm(self) -> float:
"""
``[SOURce<HW>]:[BB]:ILS:LOCalizer:SDM`` \n
Snippet: ``value: float = driver.source.bb.ils.localizer.get_sdm()`` \n
Sets the arithmetic sum of the modulation depths of the left lobe (90 Hz) and right lobe (150 Hz) for the ILS localizer
signal contents. The RMS modulation depth of the sum signal depends on the phase setting of both modulation tones.
:return: sdm: float Range: 0 to 100
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ILS:LOCalizer:SDM?')
return Conversions.str_to_float(response)
[docs]
def set_sdm(self, sdm: float) -> None:
"""
``[SOURce<HW>]:[BB]:ILS:LOCalizer:SDM`` \n
Snippet: ``driver.source.bb.ils.localizer.set_sdm(sdm = 1.0)`` \n
Sets the arithmetic sum of the modulation depths of the left lobe (90 Hz) and right lobe (150 Hz) for the ILS localizer
signal contents. The RMS modulation depth of the sum signal depends on the phase setting of both modulation tones.
:param sdm: float Range: 0 to 100
"""
param = Conversions.decimal_value_to_str(sdm)
self._core.io.write(f'SOURce<HwInstance>:BB:ILS:LOCalizer:SDM {param}')
def clone(self) -> 'LocalizerCls':
"""
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 = LocalizerCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group