Robin Mueller
80d231586e
commit79060acfb6
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Sun Jun 18 16:19:00 2023 +0200 add enable HK set cmd commitb9038f1c86
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Sun Jun 18 13:37:21 2023 +0200 add back PL PCDU 1 commitfd20a9fe3c
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Sun Jun 18 13:30:45 2023 +0200 add TMP1075 HK handling commit936dcdf334
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Thu Jun 15 05:15:05 2023 +0200 remove sw update, add fake test files commit29fc7a5fca
Merge:e106e0b
2202c95
Author: Robin Müller <muellerr@irs.uni-stuttgart.de> Date: Wed Jun 14 07:46:34 2023 +0200 Merge pull request 'Some minor tweaks for BPX commands' (#202) from add-bpx-man-heater-cmds into main Reviewed-on: #202 commit2202c95c4c
Merge:b38da20
e106e0b
Author: Robin Müller <muellerr@irs.uni-stuttgart.de> Date: Wed Jun 14 07:46:23 2023 +0200 Merge branch 'main' into add-bpx-man-heater-cmds commitb38da20953
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Wed Jun 14 07:46:00 2023 +0200 some better doc commitf9a61fa485
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Wed Jun 14 07:45:03 2023 +0200 clean up batt cmds a bit commite106e0bc63
Merge:970c899
d1bd8f1
Author: Robin Müller <muellerr@irs.uni-stuttgart.de> Date: Wed Jun 14 07:43:19 2023 +0200 Merge pull request 'added BPX manual heater commands' (#201) from add-bpx-man-heater-cmds into main Reviewed-on: #201 commitd1bd8f15d9
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Wed Jun 14 07:42:12 2023 +0200 added BPX manual heater commands commit970c8998f0
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Wed Jun 14 06:16:17 2023 +0200 prep v4.1.0 commit8a87d83653
Merge:eae0120
cf55b36
Author: Robin Müller <muellerr@irs.uni-stuttgart.de> Date: Wed Jun 14 06:06:58 2023 +0200 Merge pull request 'Add more heater commands' (#200) from add-heater-cmd-ids into main Reviewed-on: #200 commitcf55b3630c
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Wed Jun 14 05:16:21 2023 +0200 add set cfg and rst cfg commit656e75052b
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Wed Jun 14 02:59:20 2023 +0200 fix broken IDs commite91bf01daf
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Wed Jun 14 02:03:20 2023 +0200 add heater cmd IDs commiteae0120643
Merge:4a990e7
fc3cf48
Author: Robin Müller <muellerr@irs.uni-stuttgart.de> Date: Sun Jun 11 13:36:27 2023 +0200 Merge pull request 'switched to prebuilt docker image' (#198) from mohr/docker into main Reviewed-on: #198 commitfc3cf480dc
Author: Ulrich Mohr <mohr@irs.uni-stuttgart.de> Date: Sun Jun 11 12:14:52 2023 +0200 bump docker version commitacca981260
Author: Ulrich Mohr <mohr@irs.uni-stuttgart.de> Date: Sun Jun 11 12:12:47 2023 +0200 jenkins user in docker commit822eaa4c89
Author: Ulrich Mohr <mohr@irs.uni-stuttgart.de> Date: Sun Jun 11 12:01:26 2023 +0200 removed empty `environment` block in Jenkinsfile which Jenkins does not like diva.... commit252d140b8e
Author: Ulrich Mohr <mohr@irs.uni-stuttgart.de> Date: Sun Jun 11 11:56:39 2023 +0200 switched to prebuilt docker image commit4a990e704b
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Sat Jun 10 14:58:15 2023 +0200 added basic automation file commit522f273c99
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Sat Jun 10 14:48:02 2023 +0200 add date in changelog commit1724a90a26
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Sat Jun 10 14:46:00 2023 +0200 add release checklist commit7b21070363
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Sat Jun 10 14:42:28 2023 +0200 linter fixes, version bump commitd390168829
Merge:238bbd5
a969481
Author: Robin Müller <muellerr@irs.uni-stuttgart.de> Date: Sat Jun 10 14:10:42 2023 +0200 Merge pull request 'v4.0.0-dev' (#197) from v4.0.0-dev into main Reviewed-on: #197 commita969481698
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Fri Jun 9 18:53:11 2023 +0200 imtq parsing fixes commit8bdba71dc3
Merge:8804a4e
e3800ac
Author: Robin Müller <muellerr@irs.uni-stuttgart.de> Date: Fri Jun 9 12:44:00 2023 +0200 Merge pull request 'Rework logging handling' (#194) from rework_logging_handling into v4.0.0-dev Reviewed-on: #194 commite3800ac0c9
Merge:1548278
8804a4e
Author: Robin Müller <muellerr@irs.uni-stuttgart.de> Date: Fri Jun 9 12:43:21 2023 +0200 Merge branch 'v4.0.0-dev' into rework_logging_handling commit8804a4e8e9
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Fri Jun 9 12:43:08 2023 +0200 bump tmtccmd to v5.0.0rc0 commit1548278ad6
Merge:148a52a
ac140ae
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Fri Jun 9 12:42:26 2023 +0200 Merge remote-tracking branch 'origin/v4.0.0-dev' into rework_logging_handling commit148a52a69a
Merge:e45072c
238bbd5
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Fri Jun 9 12:42:16 2023 +0200 Merge remote-tracking branch 'origin/main' into rework_logging_handling commitac140aeb2c
Merge:c6c4b9a
a5a30d3
Author: Robin Müller <muellerr@irs.uni-stuttgart.de> Date: Fri Jun 9 12:41:55 2023 +0200 Merge pull request 'moved 2 parameters' (#196) from move-pdu-datavar into v4.0.0-dev Reviewed-on: #196 commita5a30d37eb
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Fri Jun 9 12:41:49 2023 +0200 tweak changelog commitd9194207a4
Merge:14d14f1
c6c4b9a
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Fri Jun 9 12:39:38 2023 +0200 Merge remote-tracking branch 'origin/v4.0.0-dev' into move-pdu-datavar commit14d14f12c0
Merge:17dd9de
238bbd5
Author: Robin Müller <muellerr@irs.uni-stuttgart.de> Date: Wed Jun 7 17:27:52 2023 +0200 Merge branch 'v3.2.0-dev' into move-pdu-datavar commit17dd9de51e
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Wed Jun 7 17:25:51 2023 +0200 moved 2 parameters commit238bbd5843
Merge:6182369
de02d81
Author: Robin Müller <muellerr@irs.uni-stuttgart.de> Date: Wed Jun 7 17:16:37 2023 +0200 Merge pull request 'better exception handling' (#195) from better-exception-handling into v3.2.0-dev Reviewed-on: #195 commitde02d81e1d
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Wed Jun 7 16:56:43 2023 +0200 better exception handling commite45072c38d
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Thu May 25 11:31:06 2023 +0200 import replacement commitfe96f115d5
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Wed May 24 13:50:37 2023 +0200 that should be all commite9e43f03d2
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Wed May 24 13:44:45 2023 +0200 more stuff commitaab093cc0a
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Tue May 23 09:54:51 2023 +0200 rework it commitc6c4b9a995
Merge:280c724
5f379bf
Author: Marius Eggert <eggertm@irs.uni-stuttgart.de> Date: Mon May 22 10:42:49 2023 +0200 Merge pull request 'Bugfix CFDP' (#191) from bugfix-cfdp into v4.0.0-dev Reviewed-on: #191 commit6182369e4f
Merge:d23c0c2
620360c
Author: Marius Eggert <eggertm@irs.uni-stuttgart.de> Date: Mon May 22 10:41:54 2023 +0200 Merge pull request 'generic systemctl' (#193) from generic_systemctl into main Reviewed-on: #193 Reviewed-by: Marius Eggert <eggertm@irs.uni-stuttgart.de> commit620360c8e8
Merge:49dde29
d23c0c2
Author: Robin Müller <muellerr@irs.uni-stuttgart.de> Date: Fri May 19 11:02:35 2023 +0200 Merge branch 'main' into generic_systemctl commit49dde29847
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Fri May 19 11:01:06 2023 +0200 generic systemctl commitd23c0c20fc
Merge:280c724
ef1da1e
Author: Marius Eggert <eggertm@irs.uni-stuttgart.de> Date: Fri May 19 10:44:01 2023 +0200 Merge pull request 'new MPSoC events and retvals' (#192) from mpsoc_new_events_retvals into main Reviewed-on: #192 Reviewed-by: Marius Eggert <eggertm@irs.uni-stuttgart.de> commitef1da1e882
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Wed May 17 19:00:17 2023 +0200 changelog commit6ec0ce20fa
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Wed May 17 17:15:43 2023 +0200 new event commit5f379bf2bb
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Mon May 15 16:43:40 2023 +0200 changelog commit7c1e7226e0
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Mon May 15 16:42:56 2023 +0200 bugfix CFDP: bump tmtccmd commitb8e1c7afe9
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Mon May 15 15:20:56 2023 +0200 new MPSoC events and retvals commit280c72439e
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Mon May 15 14:18:18 2023 +0200 bugfix MPSoC command commit14c42a91ff
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Mon May 15 13:43:26 2023 +0200 rework read and write prompts for MPSoC commitdd3e4c649b
Merge:3b16717
0c1bfc6
Author: Marius Eggert <eggertm@irs.uni-stuttgart.de> Date: Mon May 15 09:10:41 2023 +0200 Merge pull request 'MPSoC flash content reporter' (#190) from mpsoc_action_reply_handler into main Reviewed-on: #190 Reviewed-by: Marius Eggert <eggertm@irs.uni-stuttgart.de> commit3b16717ce2
Merge:377e98b
f1a0334
Author: Robin Müller <muellerr@irs.uni-stuttgart.de> Date: Fri May 12 16:27:39 2023 +0200 Merge pull request 'fixfixfix' (#189) from ploc_pwr_switching_fix into main Reviewed-on: #189 commitf1a0334d3d
Merge:f090c3a
377e98b
Author: Robin Müller <muellerr@irs.uni-stuttgart.de> Date: Fri May 12 16:27:33 2023 +0200 Merge branch 'main' into ploc_pwr_switching_fix commit0c1bfc6fd3
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Fri May 12 16:27:16 2023 +0200 bump changelog commit04bbe057e7
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Fri May 12 16:24:45 2023 +0200 flash c ontent report works now commite05a54b076
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Fri May 12 16:08:57 2023 +0200 somethings wrong with the format commitef0adef04a
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Fri May 12 15:51:17 2023 +0200 start adding action reply handler for MPSoC commit377e98b5c2
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Fri May 12 13:22:58 2023 +0200 bugfix MPSoC HK parsing commit87e5abe8eb
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Fri May 12 11:51:47 2023 +0200 add missing command list of PLOC MPSoC commands commitf090c3af66
Author: Robin Mueller <muellerr@irs.uni-stuttgart.de> Date: Thu May 11 17:55:15 2023 +0200 fixfixfix commit13fd9a7d84
Merge:4d921e0
bbcc0f9
Author: Marius Eggert <eggertm@irs.uni-stuttgart.de> Date: Thu May 4 15:30:49 2023 +0200 Merge pull request 'impl MPSoC HK parsing' (#188) from mpsoc_commands into main Reviewed-on: #188 Reviewed-by: Marius Eggert <eggertm@irs.uni-stuttgart.de> commitbbcc0f9de7
Merge:a0aa652
1ab8710
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Thu May 4 15:17:12 2023 +0200 Merge branch 'mpsoc_commands' of https://egit.irs.uni-stuttgart.de/eive/eive-tmtc into mpsoc_commands commita0aa6525e4
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Thu May 4 15:17:00 2023 +0200 fix commit1ab8710040
Merge:f480d86
4d921e0
Author: Robin Müller <muellerr@irs.uni-stuttgart.de> Date: Thu May 4 14:51:13 2023 +0200 Merge branch 'main' into mpsoc_commands commitf480d86fbd
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Thu May 4 14:50:38 2023 +0200 impl MPSoC HK parsing commit4d921e01af
Merge:e85d1a1
b505524
Author: Marius Eggert <eggertm@irs.uni-stuttgart.de> Date: Thu May 4 12:01:43 2023 +0200 Merge pull request 'MPSoC module update' (#187) from mpsoc_commands into main Reviewed-on: #187 Reviewed-by: Marius Eggert <eggertm@irs.uni-stuttgart.de> commitb505524e0b
Merge:e0e9a31
e85d1a1
Author: Marius Eggert <eggertm@irs.uni-stuttgart.de> Date: Thu May 4 12:01:33 2023 +0200 Merge branch 'main' into mpsoc_commands commite0e9a310b9
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Thu May 4 11:51:50 2023 +0200 add command to get flash dir content commit0e9ebefc87
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Thu May 4 11:27:12 2023 +0200 new mpsoc commands commite85d1a1966
Merge:60fba8b
4ff50b6
Author: Marius Eggert <eggertm@irs.uni-stuttgart.de> Date: Wed May 3 13:36:31 2023 +0200 Merge pull request 'most important bugfix' (#186) from most-important-bugfix into main Reviewed-on: #186 commit4ff50b6559
Author: meggert <eggertm@irs.uni-stuttgart.de> Date: Wed May 3 13:34:14 2023 +0200 bub commit60fba8b6d9
Merge:5fbd19b
1707f24
Author: Robin Müller <muellerr@irs.uni-stuttgart.de> Date: Fri Apr 28 10:25:35 2023 +0200 Merge pull request 'more system modes' (#185) from more-system-modes into main Reviewed-on: #185 commit1707f24612
Author: meggert <eggertm@irs.uni-stuttgart.de> Date: Wed Apr 19 15:10:44 2023 +0200 more system modes commit5fbd19bb6c
Merge:4083a30
0c6a967
Author: Robin Mueller <robin.mueller.m@gmail.com> Date: Mon Apr 17 18:41:08 2023 +0200 Merge branch 'main' of https://egit.irs.uni-stuttgart.de/eive/eive-tmtc
192 lines
7.6 KiB
Python
192 lines
7.6 KiB
Python
"""HK Handling for EIVE OBSW"""
|
|
import logging
|
|
|
|
# from pus_tm.tcp_server_objects import TCP_SEVER_SENSOR_TEMPERATURES
|
|
from eive_tmtc.tmtc.acs.acs_ctrl import handle_acs_ctrl_hk_data
|
|
from eive_tmtc.tmtc.payload.ploc_mpsoc import handle_ploc_mpsoc_hk_data
|
|
from eive_tmtc.tmtc.tcs.rtd import RTD_NAMES, handle_rtd_hk
|
|
from eive_tmtc.tmtc.acs.star_tracker import handle_str_hk_data
|
|
from eive_tmtc.tmtc.power.plpcdu import handle_plpcdu_hk
|
|
from eive_tmtc.tmtc.payload.rad_sensor import handle_rad_sensor_data
|
|
from eive_tmtc.tmtc.acs.sus import handle_sus_hk
|
|
from eive_tmtc.tmtc.payload.ploc_supervisor import handle_supv_hk_data
|
|
from eive_tmtc.tmtc.acs.reaction_wheels import handle_rw_hk_data
|
|
from eive_tmtc.tmtc.com.syrlinks_handler import handle_syrlinks_hk_data
|
|
from eive_tmtc.tmtc.tcs import handle_thermal_controller_hk_data
|
|
from eive_tmtc.tmtc.tcs.tmp1075 import handle_tmp_1075_hk_data
|
|
from spacepackets.ecss import PusTelemetry
|
|
from tmtccmd.tm.pus_3_fsfw_hk import (
|
|
Service3Base,
|
|
HkContentType,
|
|
Service3FsfwTm,
|
|
)
|
|
from tmtccmd.util.obj_id import ObjectIdU32, ObjectIdDictT
|
|
|
|
from eive_tmtc.tmtc.power.bpx_batt import handle_bpx_hk_data
|
|
from eive_tmtc.tmtc.acs.gps import handle_gps_data
|
|
from eive_tmtc.tmtc.acs.gyros import handle_gyros_hk_data
|
|
from eive_tmtc.tmtc.power.tm import (
|
|
handle_pdu_data,
|
|
handle_p60_hk_data,
|
|
handle_acu_hk_data,
|
|
handle_pcdu_hk,
|
|
)
|
|
from eive_tmtc.tmtc.acs.imtq import (
|
|
handle_imtq_hk,
|
|
)
|
|
from eive_tmtc.pus_tm.defs import FsfwTmTcPrinter, PrintWrapper
|
|
from eive_tmtc.tmtc.core import handle_core_hk_data
|
|
from eive_tmtc.tmtc.acs.mgms import handle_mgm_hk_data
|
|
import eive_tmtc.config.object_ids as obj_ids
|
|
|
|
|
|
_LOGGER = logging.getLogger(__name__)
|
|
|
|
|
|
FORWARD_SENSOR_TEMPS = False
|
|
|
|
|
|
def handle_hk_packet(
|
|
raw_tm: bytes,
|
|
obj_id_dict: ObjectIdDictT,
|
|
printer: FsfwTmTcPrinter,
|
|
):
|
|
tm_packet = Service3FsfwTm.unpack(raw_telemetry=raw_tm, custom_hk_handling=False)
|
|
named_obj_id = obj_id_dict.get(tm_packet.object_id.as_bytes)
|
|
if named_obj_id is None:
|
|
named_obj_id = tm_packet.object_id
|
|
if tm_packet.subservice == 25 or tm_packet.subservice == 26:
|
|
hk_data = tm_packet.tm_data[8:]
|
|
if FORWARD_SENSOR_TEMPS:
|
|
# TODO: Maybe use singleton?
|
|
# TCP_SEVER_SENSOR_TEMPERATURES.report_raw_hk_data(
|
|
# object_id=named_obj_id, set_id=tm_packet.set_id, hk_data=hk_data
|
|
# )
|
|
pass
|
|
printer.generic_hk_tm_print(
|
|
content_type=HkContentType.HK,
|
|
object_id=named_obj_id,
|
|
set_id=tm_packet.set_id,
|
|
hk_data=hk_data,
|
|
)
|
|
try:
|
|
handle_regular_hk_print(
|
|
printer=printer,
|
|
object_id=named_obj_id,
|
|
hk_packet=tm_packet,
|
|
tm=tm_packet.pus_tm,
|
|
hk_data=hk_data,
|
|
)
|
|
except ValueError as e:
|
|
_LOGGER.exception(
|
|
f"{e} error when parsing HK data coming from {named_obj_id}"
|
|
)
|
|
if tm_packet.subservice == 10 or tm_packet.subservice == 12:
|
|
_LOGGER.warning("HK definitions printout not implemented yet")
|
|
|
|
|
|
def handle_regular_hk_print( # noqa C901: Complexity okay here
|
|
printer: FsfwTmTcPrinter,
|
|
object_id: ObjectIdU32,
|
|
hk_packet: Service3Base,
|
|
tm: PusTelemetry,
|
|
hk_data: bytes,
|
|
):
|
|
objb = object_id.as_bytes
|
|
set_id = hk_packet.set_id
|
|
packet_dt = tm.time_provider.as_date_time()
|
|
pw = PrintWrapper(printer.file_logger)
|
|
"""This function is called when a Service 3 Housekeeping packet is received."""
|
|
if objb in [obj_ids.RW1_ID, obj_ids.RW2_ID, obj_ids.RW3_ID, obj_ids.RW4_ID]:
|
|
return handle_rw_hk_data(pw, object_id, set_id, hk_data)
|
|
elif objb == obj_ids.SYRLINKS_HANDLER_ID:
|
|
return handle_syrlinks_hk_data(pw=pw, hk_data=hk_data, set_id=set_id)
|
|
elif objb == obj_ids.IMTQ_HANDLER_ID:
|
|
return handle_imtq_hk(pw=pw, hk_data=hk_data, set_id=set_id)
|
|
elif objb == obj_ids.GPS_CONTROLLER:
|
|
return handle_gps_data(pw=pw, hk_data=hk_data)
|
|
elif objb == obj_ids.PCDU_HANDLER_ID:
|
|
return handle_pcdu_hk(pw=pw, set_id=set_id, hk_data=hk_data)
|
|
elif objb == obj_ids.BPX_HANDLER_ID:
|
|
return handle_bpx_hk_data(hk_data=hk_data, set_id=set_id, pw=pw)
|
|
elif objb == obj_ids.CORE_CONTROLLER_ID:
|
|
return handle_core_hk_data(pw=pw, hk_data=hk_data, set_id=set_id)
|
|
elif objb == obj_ids.PDU_1_HANDLER_ID:
|
|
return handle_pdu_data(pw=pw, pdu_idx=1, set_id=set_id, hk_data=hk_data)
|
|
elif objb == obj_ids.PDU_2_HANDLER_ID:
|
|
return handle_pdu_data(pw=pw, pdu_idx=2, set_id=set_id, hk_data=hk_data)
|
|
elif objb == obj_ids.PLOC_MPSOC_ID:
|
|
return handle_ploc_mpsoc_hk_data(pw=pw, hk_data=hk_data, set_id=set_id)
|
|
elif objb == obj_ids.ACU_HANDLER_ID:
|
|
return handle_acu_hk_data(pw=pw, hk_data=hk_data, set_id=set_id)
|
|
elif objb == obj_ids.RAD_SENSOR_ID:
|
|
return handle_rad_sensor_data(pw=pw, hk_data=hk_data, set_id=set_id)
|
|
elif objb in [obj_ids.RW1_ID, obj_ids.RW2_ID, obj_ids.RW3_ID, obj_ids.RW4_ID]:
|
|
return handle_rw_hk_data(
|
|
pw=pw, object_id=object_id, set_id=set_id, hk_data=hk_data
|
|
)
|
|
if objb in [
|
|
obj_ids.SUS_0_N_LOC_XFYFZM_PT_XF,
|
|
obj_ids.SUS_1_N_LOC_XBYFZM_PT_XB,
|
|
obj_ids.SUS_2_N_LOC_XFYBZB_PT_YB,
|
|
obj_ids.SUS_3_N_LOC_XFYBZF_PT_YF,
|
|
obj_ids.SUS_4_N_LOC_XMYFZF_PT_ZF,
|
|
obj_ids.SUS_5_N_LOC_XFYMZB_PT_ZB,
|
|
obj_ids.SUS_6_R_LOC_XFYBZM_PT_XF,
|
|
obj_ids.SUS_7_R_LOC_XBYBZM_PT_XB,
|
|
obj_ids.SUS_8_R_LOC_XBYBZB_PT_YB,
|
|
obj_ids.SUS_9_R_LOC_XBYBZB_PT_YF,
|
|
obj_ids.SUS_10_R_LOC_XMYBZF_PT_ZF,
|
|
obj_ids.SUS_11_R_LOC_XBYMZB_PT_ZB,
|
|
]:
|
|
return handle_sus_hk(object_id=object_id, hk_data=hk_data, pw=pw, set_id=set_id)
|
|
elif objb in RTD_NAMES.keys():
|
|
return handle_rtd_hk(object_id=objb, hk_data=hk_data, pw=pw)
|
|
elif objb == obj_ids.P60_DOCK_HANDLER:
|
|
return handle_p60_hk_data(pw=pw, set_id=set_id, hk_data=hk_data)
|
|
elif objb in [
|
|
obj_ids.GYRO_0_ADIS_HANDLER_ID,
|
|
obj_ids.GYRO_1_L3G_HANDLER_ID,
|
|
obj_ids.GYRO_2_ADIS_HANDLER_ID,
|
|
obj_ids.GYRO_3_L3G_HANDLER_ID,
|
|
]:
|
|
return handle_gyros_hk_data(
|
|
object_id=object_id, hk_data=hk_data, pw=pw, set_id=set_id
|
|
)
|
|
elif objb in [
|
|
obj_ids.MGM_0_LIS3_HANDLER_ID,
|
|
obj_ids.MGM_1_RM3100_HANDLER_ID,
|
|
obj_ids.MGM_2_LIS3_HANDLER_ID,
|
|
obj_ids.MGM_3_RM3100_HANDLER_ID,
|
|
]:
|
|
return handle_mgm_hk_data(
|
|
object_id=object_id, hk_data=hk_data, pw=pw, set_id=set_id
|
|
)
|
|
elif objb == obj_ids.PL_PCDU_ID:
|
|
return handle_plpcdu_hk(set_id=set_id, hk_data=hk_data, pw=pw)
|
|
elif objb == obj_ids.THERMAL_CONTROLLER_ID:
|
|
return handle_thermal_controller_hk_data(
|
|
object_id=object_id, pw=pw, set_id=set_id, hk_data=hk_data
|
|
)
|
|
elif objb == obj_ids.STAR_TRACKER_ID:
|
|
return handle_str_hk_data(set_id=set_id, hk_data=hk_data, pw=pw)
|
|
elif objb == obj_ids.PLOC_SUPV_ID:
|
|
return handle_supv_hk_data(set_id=set_id, hk_data=hk_data, pw=pw)
|
|
elif objb in [
|
|
obj_ids.TMP1075_HANDLER_TCS_BRD_0_ID,
|
|
obj_ids.TMP1075_HANDLER_TCS_BRD_1_ID,
|
|
obj_ids.TMP1075_HANDLER_IF_BRD_ID,
|
|
obj_ids.TMP1075_HANDLER_PLPCDU_0_ID,
|
|
obj_ids.TMP1075_HANDLER_PLPCDU_1_ID,
|
|
]:
|
|
return handle_tmp_1075_hk_data(set_id=set_id, hk_data=hk_data, pw=pw)
|
|
elif objb == obj_ids.ACS_CONTROLLER:
|
|
return handle_acs_ctrl_hk_data(
|
|
pw=pw, set_id=set_id, hk_data=hk_data, packet_time=packet_dt
|
|
)
|
|
else:
|
|
_LOGGER.info(
|
|
f"Service 3 TM: Parsing for object {object_id} and set ID {set_id} "
|
|
f"has not been implemented."
|
|
)
|