Skip to content

Commit

Permalink
remove old code
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Nov 2, 2022
1 parent f3c9501 commit 9f16ae4
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions tmtccmd/pus/pus_17_test.py
Expand Up @@ -3,7 +3,6 @@

from spacepackets.ecss import PusTelecommand, PusServices
from spacepackets.ecss.pus_17_test import Subservices
from tmtccmd.tc.queue import QueueHelperBase


class CustomSubservices(enum.IntEnum):
Expand All @@ -12,27 +11,4 @@ class CustomSubservices(enum.IntEnum):

def pack_service_17_ping_command() -> PusTelecommand:
"""Generate a simple ping PUS telecommand packet"""
return PusTelecommand(
service=PusServices.S17_TEST, subservice=Subservices.TC_PING.value
)


def pack_generic_service17_test(q: QueueHelperBase):
q.add_log_cmd("Testing Service 17")
# ping test
q.add_log_cmd("Testing Service 17: Ping Test")
q.add_pus_tc(pack_service_17_ping_command())
# enable event
q.add_log_cmd("Testing Service 17: Enable Event")
q.add_pus_tc(PusTelecommand(service=5, subservice=5))
# test event
q.add_log_cmd("Testing Service 17: Trigger event")
q.add_pus_tc(
PusTelecommand(
service=17,
subservice=CustomSubservices.TC_GEN_EVENT,
)
)
# invalid subservice
q.add_log_cmd("Testing Service 17: Invalid subservice")
q.add_pus_tc(PusTelecommand(service=17, subservice=243))
return PusTelecommand(service=PusServices.S17_TEST, subservice=Subservices.TC_PING)

0 comments on commit 9f16ae4

Please sign in to comment.