eive-tmtc/eive_tmtc/pus_tm/hk.py
Robin Mueller 86a68e25f7
All checks were successful
EIVE/-/pipeline/head This commit looks good
need to fix action reply handler
2024-05-06 11:23:31 +02:00

19 lines
422 B
Python

import uuid
import dataclasses
import datetime
import sqlite3
from spacepackets.ecss.tm import CdsShortTimestamp, PusTm
@dataclasses.dataclass
class HkTmInfo:
packet_uuid: uuid.UUID
hk_packet: PusTm
set_id: int
db_con: sqlite3.Connection
hk_data: bytes
@property
def packet_datetime(self) -> datetime.datetime:
return CdsShortTimestamp.unpack(self.hk_packet.timestamp).as_datetime()