printing out version string of spacepackets

This commit is contained in:
Robin Müller 2021-10-04 10:06:40 +02:00
parent ee780738f9
commit 12a4a52d54
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
2 changed files with 5 additions and 1 deletions

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)