from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums
from ....... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DisplayCls:
"""
| Commands in total: 46
| Subgroups: 8
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("display", 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 channels(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_channels'):
from .Channels import ChannelsCls
self._channels = ChannelsCls(self._core, self._cmd_group)
return self._channels
@property
def map(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_map'):
from .Map import MapCls
self._map = MapCls(self._core, self._cmd_group)
return self._map
@property
def power(self):
"""
| Commands in total: 36
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_power'):
from .Power import PowerCls
self._power = PowerCls(self._core, self._cmd_group)
return self._power
@property
def stream(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_stream'):
from .Stream import StreamCls
self._stream = StreamCls(self._core, self._cmd_group)
return self._stream
@property
def tracks(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_tracks'):
from .Tracks import TracksCls
self._tracks = TracksCls(self._core, self._cmd_group)
return self._tracks
@property
def trajectory(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_trajectory'):
from .Trajectory import TrajectoryCls
self._trajectory = TrajectoryCls(self._core, self._cmd_group)
return self._trajectory
@property
def vehicle(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_vehicle'):
from .Vehicle import VehicleCls
self._vehicle = VehicleCls(self._core, self._cmd_group)
return self._vehicle
[docs]
def set(self, display_type: enums.MonitorDisplayType, monitorPane=repcap.MonitorPane.Default) -> None:
"""
``[SOURce<HW>]:BB:GNSS:MONitor<CH>:DISPlay`` \n
Snippet: ``driver.source.bb.gnss.monitor.display.set(display_type = enums.MonitorDisplayType.ATTitude, monitorPane = repcap.MonitorPane.Default)`` \n
Switches between the available views.
:param display_type: SKY | MAP | POWer | TRAJectory | ATTitude | TRACks | CHANnels
:param monitorPane: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Monitor')
"""
param = Conversions.enum_scalar_to_str(display_type, enums.MonitorDisplayType)
monitorPane_cmd_val = self._cmd_group.get_repcap_cmd_value(monitorPane, repcap.MonitorPane)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:MONitor{monitorPane_cmd_val}:DISPlay {param}')
# noinspection PyTypeChecker
[docs]
def get(self, monitorPane=repcap.MonitorPane.Default) -> enums.MonitorDisplayType:
"""
``[SOURce<HW>]:BB:GNSS:MONitor<CH>:DISPlay`` \n
Snippet: ``value: enums.MonitorDisplayType = driver.source.bb.gnss.monitor.display.get(monitorPane = repcap.MonitorPane.Default)`` \n
Switches between the available views.
:param monitorPane: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Monitor')
:return: display_type: SKY | MAP | POWer | TRAJectory | ATTitude | TRACks | CHANnels
"""
monitorPane_cmd_val = self._cmd_group.get_repcap_cmd_value(monitorPane, repcap.MonitorPane)
response = self._core.io.query_str(f'SOURce<HwInstance>:BB:GNSS:MONitor{monitorPane_cmd_val}:DISPlay?')
return Conversions.str_to_scalar_enum(response, enums.MonitorDisplayType)
def clone(self) -> 'DisplayCls':
"""
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 = DisplayCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group