Compare commits
1 Commits
main
...
add-reset-
Author | SHA1 | Date | |
---|---|---|---|
4fe2161622 |
@ -19,6 +19,7 @@ from tmtccmd.fsfw.tmtc_printer import get_validity_buffer_str
|
|||||||
from tmtccmd.pus.s11_tc_sched import (
|
from tmtccmd.pus.s11_tc_sched import (
|
||||||
create_enable_tc_sched_cmd,
|
create_enable_tc_sched_cmd,
|
||||||
create_disable_tc_sched_cmd,
|
create_disable_tc_sched_cmd,
|
||||||
|
create_reset_tc_sched_cmd,
|
||||||
)
|
)
|
||||||
|
|
||||||
from eive_tmtc.config.object_ids import CORE_CONTROLLER_ID
|
from eive_tmtc.config.object_ids import CORE_CONTROLLER_ID
|
||||||
@ -70,6 +71,7 @@ class ActionId(enum.IntEnum):
|
|||||||
MKDIR_HELPER = 55
|
MKDIR_HELPER = 55
|
||||||
ENABLE_SCHEDULER = 56
|
ENABLE_SCHEDULER = 56
|
||||||
UPDATE_LEAP_SECONRS = 60
|
UPDATE_LEAP_SECONRS = 60
|
||||||
|
RESET_SCHEDULER = 61
|
||||||
|
|
||||||
|
|
||||||
class ParamId(enum.IntEnum):
|
class ParamId(enum.IntEnum):
|
||||||
@ -122,6 +124,7 @@ class OpCode:
|
|||||||
ENABLE_SCHEDULER = "enable_scheduler"
|
ENABLE_SCHEDULER = "enable_scheduler"
|
||||||
DISABLE_SCHEDULER = "disable_scheduler"
|
DISABLE_SCHEDULER = "disable_scheduler"
|
||||||
UPDATE_LEAP_SECONDS = "leap_seconds_update"
|
UPDATE_LEAP_SECONDS = "leap_seconds_update"
|
||||||
|
RESET_SCHEDULER = "reset_scheduler"
|
||||||
|
|
||||||
|
|
||||||
class Info:
|
class Info:
|
||||||
@ -166,6 +169,7 @@ class Info:
|
|||||||
ENABLE_SCHEDULER = "Enable scheduler"
|
ENABLE_SCHEDULER = "Enable scheduler"
|
||||||
DISABLE_SCHEDULER = "Disable scheduler"
|
DISABLE_SCHEDULER = "Disable scheduler"
|
||||||
UPDATE_LEAP_SECONDS = "Updates the Leap Seconds"
|
UPDATE_LEAP_SECONDS = "Updates the Leap Seconds"
|
||||||
|
RESET_SCHEDULER = "Reset scheduler"
|
||||||
|
|
||||||
|
|
||||||
class Chip(enum.IntEnum):
|
class Chip(enum.IntEnum):
|
||||||
@ -475,6 +479,9 @@ def pack_core_commands( # noqa C901
|
|||||||
elif cmd_str == OpCode.DISABLE_SCHEDULER:
|
elif cmd_str == OpCode.DISABLE_SCHEDULER:
|
||||||
q.add_log_cmd(Info.DISABLE_SCHEDULER)
|
q.add_log_cmd(Info.DISABLE_SCHEDULER)
|
||||||
q.add_pus_tc(create_disable_tc_sched_cmd())
|
q.add_pus_tc(create_disable_tc_sched_cmd())
|
||||||
|
elif cmd_str == OpCode.RESET_SCHEDULER:
|
||||||
|
q.add_log_cmd(Info.RESET_SCHEDULER)
|
||||||
|
q.add_pus_tc(create_reset_tc_sched_cmd())
|
||||||
elif cmd_str == OpCode.UPDATE_LEAP_SECONDS:
|
elif cmd_str == OpCode.UPDATE_LEAP_SECONDS:
|
||||||
q.add_log_cmd(Info.UPDATE_LEAP_SECONDS)
|
q.add_log_cmd(Info.UPDATE_LEAP_SECONDS)
|
||||||
leap_seconds = int(input("Specify new Leap Seconds Value: ")).to_bytes(
|
leap_seconds = int(input("Specify new Leap Seconds Value: ")).to_bytes(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user