This commit is contained in:
parent
9680066d0a
commit
6420bd162a
@ -726,9 +726,6 @@ def request_dataset(q: DefaultPusQueueHelper, type: DataSetRequest):
|
||||
else:
|
||||
print("Not Implemented Yet")
|
||||
case DataSetRequest.DISABLE:
|
||||
interval = float(
|
||||
input("Please specify interval in floating point seconds: ")
|
||||
)
|
||||
if setId in [SetId.SOLUTION]:
|
||||
q.add_pus_tc(
|
||||
disable_periodic_hk_command(True, make_sid(STAR_TRACKER_ID, setId))
|
||||
@ -943,7 +940,7 @@ def handle_blob_set(hk_data: bytes, pw: PrintWrapper):
|
||||
_LOGGER.warning(f"Blob dataset HK data with length {len(hk_data)} too short")
|
||||
return
|
||||
current_idx = unpack_time_hk(hk_data, 0, pw)
|
||||
blob_count = struct.unpack("!I", hk_data[current_idx : current_idx + 4])
|
||||
blob_count = struct.unpack("!I", hk_data[current_idx : current_idx + 4])[0]
|
||||
pw.dlog(f"Blob count: {blob_count}")
|
||||
FsfwTmTcPrinter.get_validity_buffer(hk_data[current_idx + 4 :], num_vars=3)
|
||||
|
||||
@ -982,7 +979,7 @@ def handle_centroid_set(hk_data: bytes, pw: PrintWrapper):
|
||||
f"Centroid dataset HK data with length {len(hk_data)} too short"
|
||||
)
|
||||
current_idx = unpack_time_hk(hk_data, 0, pw)
|
||||
centroid_count = struct.unpack("!I", hk_data[current_idx : current_idx + 4])
|
||||
centroid_count = struct.unpack("!I", hk_data[current_idx : current_idx + 4])[0]
|
||||
pw.dlog(f"Centroid count: {centroid_count}")
|
||||
FsfwTmTcPrinter.get_validity_buffer(hk_data[current_idx:], num_vars=3)
|
||||
|
||||
@ -990,7 +987,8 @@ def handle_centroid_set(hk_data: bytes, pw: PrintWrapper):
|
||||
def handle_centroids_set(hk_data: bytes, pw: PrintWrapper):
|
||||
pw.dlog("Received Centroids Set")
|
||||
current_idx = unpack_time_hk(hk_data, 0, pw)
|
||||
centroids_count = struct.unpack("!H", hk_data[current_idx : current_idx + 2])
|
||||
centroids_count = struct.unpack("!H", hk_data[current_idx : current_idx + 2])[0]
|
||||
current_idx += 2
|
||||
pw.dlog(f"Centroids count: {centroids_count}")
|
||||
fmt_coords = "!HHHHHHHHHHHHHHHH"
|
||||
inc_len = struct.calcsize(fmt_coords)
|
||||
|
Loading…
x
Reference in New Issue
Block a user