diff --git a/eive_tmtc/tmtc/acs/acs_ctrl.py b/eive_tmtc/tmtc/acs/acs_ctrl.py index 5101c0a..d4206ef 100644 --- a/eive_tmtc/tmtc/acs/acs_ctrl.py +++ b/eive_tmtc/tmtc/acs/acs_ctrl.py @@ -934,7 +934,7 @@ def handle_gps_data_processed(pw: PrintWrapper, hk_data: bytes): alt = [ f"{val:8.3f}" for val in struct.unpack( - fmt_scalar, hk_data[current_idx: current_idx + inc_len_scalar] + fmt_scalar, hk_data[current_idx : current_idx + inc_len_scalar] ) ] current_idx += inc_len_scalar @@ -985,7 +985,11 @@ def handle_mekf_data(pw: PrintWrapper, hk_data: bytes): current_idx = 0 quat = struct.unpack(fmt_quat, hk_data[current_idx : current_idx + inc_len_quat]) current_idx += inc_len_quat - rate = struct.unpack(fmt_vec, hk_data[current_idx : current_idx + inc_len_vec])*180/math.pi + rate = ( + struct.unpack(fmt_vec, hk_data[current_idx : current_idx + inc_len_vec]) + * 180 + / math.pi + ) current_idx += inc_len_vec status = struct.unpack(fmt_sts, hk_data[current_idx : current_idx + inc_len_sts])[0] current_idx += inc_len_sts diff --git a/eive_tmtc/tmtc/core.py b/eive_tmtc/tmtc/core.py index d29fa38..bd5d060 100644 --- a/eive_tmtc/tmtc/core.py +++ b/eive_tmtc/tmtc/core.py @@ -284,7 +284,9 @@ def pack_core_commands(q: DefaultPusQueueHelper, op_code: str): sid = make_sid(object_id=CORE_CONTROLLER_ID, set_id=SetId.HK) q.add_pus_tc(generate_one_hk_command(sid)) else: - _LOGGER.warning(f"Unknown operation code {op_code} for core controller commands") + _LOGGER.warning( + f"Unknown operation code {op_code} for core controller commands" + ) def reset_specific_boot_counter(q: DefaultPusQueueHelper, chip: int, copy: int): diff --git a/eive_tmtc/tmtc/tcs/rtd.py b/eive_tmtc/tmtc/tcs/rtd.py index 208e2f9..bd1e316 100644 --- a/eive_tmtc/tmtc/tcs/rtd.py +++ b/eive_tmtc/tmtc/tcs/rtd.py @@ -1,3 +1,4 @@ +import enum from typing import Optional import struct @@ -36,6 +37,10 @@ class CommandId: WRITE_CONFIG = 6 +class SetId(enum.IntEnum): + TEMPERATURE = 1 + + class OpCode: ON = ["0", "on"] OFF = ["1", "off"]