eive-tmtc/eive_tmtc/pus_tm/hk.py
Robin Mueller 7cb5766a7a
All checks were successful
EIVE/-/pipeline/pr-main This commit looks good
added another helper/wrapper type
2023-11-13 14:50:49 +01:00

22 lines
476 B
Python

import uuid
import dataclasses
import datetime
import sqlite3
from tmtccmd.pus.tm.s3_fsfw_hk import Service3FsfwTm
@dataclasses.dataclass
class HkTmInfo:
packet_uuid: uuid.UUID
hk_packet: Service3FsfwTm
db_con: sqlite3.Connection
hk_data: bytes
@property
def packet_datetime(self) -> datetime.datetime:
return self.hk_packet.pus_tm.time_provider.as_datetime()
@property
def set_id(self) -> int:
return self.hk_packet.set_id