started event reading

This commit is contained in:
Robin Mueller
2022-03-04 11:02:10 +01:00
parent ea5f384f72
commit 47f982e4f7
8 changed files with 171 additions and 165 deletions

View File

@ -65,6 +65,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__} --")
@ -74,6 +75,7 @@ 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)