added event and obj ID parsing

This commit is contained in:
Robin Mueller
2022-03-04 11:56:42 +01:00
parent 47f982e4f7
commit 2e0cd0fcf4
7 changed files with 93 additions and 43 deletions

View File

@ -66,6 +66,7 @@ from pus_tm.factory_hook import ccsds_tm_handler
def main():
from pus_tm.event_handler import handle_event_packet
hook_obj = EiveHookObject()
print(f"-- eive tmtc version {__version__} --")
print(f"-- spacepackets version {spacepackets.__version__} --")
@ -75,7 +76,6 @@ def main():
ccsds_handler.add_tm_handler(
apid=PUS_APID, pus_tm_handler=ccsds_tm_handler, max_queue_len=50
)
handle_event_packet(object_id=bytes([0x00, 0x00, 0x00, 0x00]), event_id=0, param_1=0, param_2=0)
add_ccsds_handler(ccsds_handler)
run_tmtc_commander(False)