run black

This commit is contained in:
Robin Müller 2023-02-10 17:52:09 +01:00
parent 654a5a2e13
commit 6db34aacaa
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -22,7 +22,8 @@ from tmtccmd.tc.pus_3_fsfw_hk import (
make_sid,
create_request_one_diag_command,
create_enable_periodic_hk_command_with_interval,
create_disable_periodic_hk_command, create_request_one_hk_command,
create_disable_periodic_hk_command,
create_request_one_hk_command,
)
from spacepackets.ecss.tc import PusTelecommand
from tmtccmd.tc.pus_200_fsfw_mode import Mode, create_mode_command
@ -355,6 +356,7 @@ class TxConv(enum.IntEnum):
VITERBI_HALF_G1G2INV = 0b010
VITERBI_HALF = 0b111
class TxStatus(enum.IntEnum):
NOT_AVAILABLE = 0b00
MODULATION = 0b01
@ -392,7 +394,9 @@ def handle_syrlinks_tx_registers_dataset(
try:
tx_conf_set = TxCfgSet((tx_status >> 2) & 0b11)
except ValueError:
logging.getLogger(__name__).warning(f"invalid TX conf set {(tx_status >> 2) & 0b11}")
logging.getLogger(__name__).warning(
f"invalid TX conf set {(tx_status >> 2) & 0b11}"
)
tx_conf_set = -1
tx_clock_detect = (tx_status >> 4) & 0b1
tx_waveform = hk_data[1]