from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
from .........Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class VelocityCls:
"""Velocity commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("velocity", core, parent)
[docs] def get_ecef(self) -> bool:
"""SCPI: [SOURce<HW>]:BB:GNSS:LOGGing:CATegory:UMOTion:[CSV]:VELocity:ECEF \n
Snippet: value: bool = driver.source.bb.gnss.logging.category.umotion.csv.velocity.get_ecef() \n
Enables the parameter for logging. \n
:return: state: 1| ON| 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:LOGGing:CATegory:UMOTion:CSV:VELocity:ECEF?')
return Conversions.str_to_bool(response)
[docs] def set_ecef(self, state: bool) -> None:
"""SCPI: [SOURce<HW>]:BB:GNSS:LOGGing:CATegory:UMOTion:[CSV]:VELocity:ECEF \n
Snippet: driver.source.bb.gnss.logging.category.umotion.csv.velocity.set_ecef(state = False) \n
Enables the parameter for logging. \n
:param state: 1| ON| 0| OFF
"""
param = Conversions.bool_to_str(state)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:LOGGing:CATegory:UMOTion:CSV:VELocity:ECEF {param}')
[docs] def get_lned(self) -> bool:
"""SCPI: [SOURce<HW>]:BB:GNSS:LOGGing:CATegory:UMOTion:[CSV]:VELocity:LNED \n
Snippet: value: bool = driver.source.bb.gnss.logging.category.umotion.csv.velocity.get_lned() \n
Enables the parameter for logging. \n
:return: state: 1| ON| 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:LOGGing:CATegory:UMOTion:CSV:VELocity:LNED?')
return Conversions.str_to_bool(response)
[docs] def set_lned(self, state: bool) -> None:
"""SCPI: [SOURce<HW>]:BB:GNSS:LOGGing:CATegory:UMOTion:[CSV]:VELocity:LNED \n
Snippet: driver.source.bb.gnss.logging.category.umotion.csv.velocity.set_lned(state = False) \n
Enables the parameter for logging. \n
:param state: 1| ON| 0| OFF
"""
param = Conversions.bool_to_str(state)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:LOGGing:CATegory:UMOTion:CSV:VELocity:LNED {param}')