STR hk handling fix
This commit is contained in:
parent
ca5b2238bc
commit
ae2fd8bb37
@ -19,6 +19,7 @@ list yields a list of all related PRs for each release.
|
||||
## Fixed
|
||||
|
||||
- Import error for STR code
|
||||
- STR HK bugfixes and length check
|
||||
|
||||
# [v2.18.1] 2023-03-11
|
||||
|
||||
|
@ -689,6 +689,9 @@ def handle_str_hk_data(set_id: int, hk_data: bytes, printer: FsfwTmTcPrinter):
|
||||
|
||||
def handle_solution_set(hk_data: bytes, pw: PrintWrapper):
|
||||
pw.dlog("Received solution set")
|
||||
if len(hk_data) < 78:
|
||||
_LOGGER.warning(f"Solution dataset HK data with length {len(hk_data)} too short")
|
||||
return
|
||||
ticks_time_fmt = "!IQ"
|
||||
current_idx = 0
|
||||
fmt_len = struct.calcsize(ticks_time_fmt)
|
||||
@ -732,7 +735,7 @@ def handle_solution_set(hk_data: bytes, pw: PrintWrapper):
|
||||
current_idx += 1
|
||||
# Result of LISA: Lost in space algorithm
|
||||
lisa_fmt = "!fffffB"
|
||||
fmt_len = struct.calcsize(track_fmt)
|
||||
fmt_len = struct.calcsize(lisa_fmt)
|
||||
(
|
||||
lisa_q_w,
|
||||
lisa_q_x,
|
||||
|
Loading…
Reference in New Issue
Block a user