TMTC Update #25

Merged
meierj merged 11 commits from mueller/tmtc-update into develop 2021-10-06 17:48:49 +02:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit 12a4a52d54 - Show all commits

View File

@ -35,6 +35,7 @@ from pus_tm.factory_hook import ccsds_tm_handler
try:
from tmtccmd.runner import initialize_tmtc_commander, run_tmtc_commander, add_ccsds_handler
from tmtccmd.ccsds.handler import CcsdsTmHandler
import spacepackets
except ImportError as error:
run_tmtc_commander = None
initialize_tmtc_commander = None
@ -46,7 +47,8 @@ except ImportError as error:
def main():
hook_obj = EiveHookObject()
print(f"-- eive tmtc version {__version__}")
print(f'-- eive tmtc version {__version__} --')
print(f'-- spacepackets version {spacepackets.__version__} --')
initialize_tmtc_commander(hook_object=hook_obj)
ccsds_handler = CcsdsTmHandler()
ccsds_handler.add_tm_handler(apid=PUS_APID, pus_tm_handler=ccsds_tm_handler, max_queue_len=50)

View File

@ -35,6 +35,7 @@ from pus_tm.factory_hook import ccsds_tm_handler
try:
from tmtccmd.runner import initialize_tmtc_commander, run_tmtc_commander, add_ccsds_handler
from tmtccmd.ccsds.handler import CcsdsTmHandler
import spacepackets
except ImportError as error:
run_tmtc_commander = None
initialize_tmtc_commander = None
@ -47,6 +48,7 @@ except ImportError as error:
def main():
hook_obj = EiveHookObject()
print(f"-- eive tmtc version {__version__}")
print(f'-- spacepackets version {spacepackets.__version__} --')
initialize_tmtc_commander(hook_object=hook_obj)
ccsds_handler = CcsdsTmHandler()
ccsds_handler.add_tm_handler(apid=PUS_APID, pus_tm_handler=ccsds_tm_handler, max_queue_len=50)