added back hook function
This commit is contained in:
parent
11f4b23b1d
commit
c5e3c36a0c
@ -28,5 +28,6 @@
|
|||||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||||
<listEntry value="4"/>
|
<listEntry value="4"/>
|
||||||
</listAttribute>
|
</listAttribute>
|
||||||
|
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><memoryBlockExpressionList context="reserved-for-future-use"/>"/>
|
||||||
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
|
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
|
||||||
</launchConfiguration>
|
</launchConfiguration>
|
||||||
|
@ -51,8 +51,8 @@ class FsfwHookBase(TmTcHookBase):
|
|||||||
pack_service_queue_user(service=service, op_code=op_code, service_queue=service_queue)
|
pack_service_queue_user(service=service, op_code=op_code, service_queue=service_queue)
|
||||||
|
|
||||||
def tm_user_factory_hook(self, raw_tm_packet: bytearray) -> Optional[PusTelemetry]:
|
def tm_user_factory_hook(self, raw_tm_packet: bytearray) -> Optional[PusTelemetry]:
|
||||||
from pus_tm.factory_hook import tm_user_factory_hook
|
from pus_tm.factory_hook import tm_user_factory_hook
|
||||||
return tm_user_factory_hook(raw_tm_packet=raw_tm_packet)
|
return tm_user_factory_hook(raw_tm_packet=raw_tm_packet)
|
||||||
|
|
||||||
def get_object_ids(self) -> Dict[bytes, list]:
|
def get_object_ids(self) -> Dict[bytes, list]:
|
||||||
from config.object_ids import get_object_ids
|
from config.object_ids import get_object_ids
|
||||||
|
2
tmtc/tmtc_client_cli.py
Normal file → Executable file
2
tmtc/tmtc_client_cli.py
Normal file → Executable file
@ -26,6 +26,7 @@ limitations under the License.
|
|||||||
|
|
||||||
@author R. Mueller
|
@author R. Mueller
|
||||||
"""
|
"""
|
||||||
|
import sys
|
||||||
from config.hook_implementation import FsfwHookBase
|
from config.hook_implementation import FsfwHookBase
|
||||||
try:
|
try:
|
||||||
from tmtccmd.runner import run_tmtc_commander, initialize_tmtc_commander
|
from tmtccmd.runner import run_tmtc_commander, initialize_tmtc_commander
|
||||||
@ -34,6 +35,7 @@ except ImportError:
|
|||||||
initialize_tmtc_commander = None
|
initialize_tmtc_commander = None
|
||||||
print("Python tmtccmd submodule not installed")
|
print("Python tmtccmd submodule not installed")
|
||||||
print("Install with \"cd tmtccmd && python3 -m pip install -e .\" for interactive installation")
|
print("Install with \"cd tmtccmd && python3 -m pip install -e .\" for interactive installation")
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit a259c5b3bc71383e3bc09284d60c407d9b1d7c43
|
Subproject commit 0d91e26bc576c2dea7769d16d3b5a8a8bc10482c
|
Loading…
x
Reference in New Issue
Block a user