run black
This commit is contained in:
parent
654a5a2e13
commit
6db34aacaa
@ -22,7 +22,8 @@ from tmtccmd.tc.pus_3_fsfw_hk import (
|
|||||||
make_sid,
|
make_sid,
|
||||||
create_request_one_diag_command,
|
create_request_one_diag_command,
|
||||||
create_enable_periodic_hk_command_with_interval,
|
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 spacepackets.ecss.tc import PusTelecommand
|
||||||
from tmtccmd.tc.pus_200_fsfw_mode import Mode, create_mode_command
|
from tmtccmd.tc.pus_200_fsfw_mode import Mode, create_mode_command
|
||||||
@ -48,7 +49,7 @@ class OpCode:
|
|||||||
NORMAL_RX_AND_TX_LOW_DATARATE = "nml_low_datarate"
|
NORMAL_RX_AND_TX_LOW_DATARATE = "nml_low_datarate"
|
||||||
NORMAL_RX_AND_TX_HIGH_DATARATE = "nml_high_datarate"
|
NORMAL_RX_AND_TX_HIGH_DATARATE = "nml_high_datarate"
|
||||||
HK_RX_REGS = "hk_rx_regs"
|
HK_RX_REGS = "hk_rx_regs"
|
||||||
HK_TEMPS= "hk_temps"
|
HK_TEMPS = "hk_temps"
|
||||||
ENABLE_HK_RX_REGS = "enable_hk_rx"
|
ENABLE_HK_RX_REGS = "enable_hk_rx"
|
||||||
DISABLE_HK_RX_REGS = "disable_hk_rx"
|
DISABLE_HK_RX_REGS = "disable_hk_rx"
|
||||||
ENABLE_HK_TX_REGS = "enable_hk_tx"
|
ENABLE_HK_TX_REGS = "enable_hk_tx"
|
||||||
@ -355,6 +356,7 @@ class TxConv(enum.IntEnum):
|
|||||||
VITERBI_HALF_G1G2INV = 0b010
|
VITERBI_HALF_G1G2INV = 0b010
|
||||||
VITERBI_HALF = 0b111
|
VITERBI_HALF = 0b111
|
||||||
|
|
||||||
|
|
||||||
class TxStatus(enum.IntEnum):
|
class TxStatus(enum.IntEnum):
|
||||||
NOT_AVAILABLE = 0b00
|
NOT_AVAILABLE = 0b00
|
||||||
MODULATION = 0b01
|
MODULATION = 0b01
|
||||||
@ -392,7 +394,9 @@ def handle_syrlinks_tx_registers_dataset(
|
|||||||
try:
|
try:
|
||||||
tx_conf_set = TxCfgSet((tx_status >> 2) & 0b11)
|
tx_conf_set = TxCfgSet((tx_status >> 2) & 0b11)
|
||||||
except ValueError:
|
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_conf_set = -1
|
||||||
tx_clock_detect = (tx_status >> 4) & 0b1
|
tx_clock_detect = (tx_status >> 4) & 0b1
|
||||||
tx_waveform = hk_data[1]
|
tx_waveform = hk_data[1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user