parameter command to change transmitter timeout

This commit is contained in:
Jakob Meier 2023-02-22 12:56:57 +01:00
parent a06f703d6f
commit 6228181357

View File

@ -21,6 +21,11 @@ from tmtccmd.tc.pus_20_fsfw_param import (
pack_scalar_u8_parameter_app_data,
)
from tmtccmd.pus.s20_fsfw_param_defs import (
create_scalar_u32_parameter,
create_scalar_u8_parameter
)
class ParameterId(enum.IntEnum):
DATARATE = 0
@ -116,16 +121,16 @@ def build_com_subsystem_cmd(p: ServiceProviderParams):
create_mode_command(COM_SUBSYSTEM_ID, Submode.RX_AND_TX_CARRIER_WAVE, 0)
)
elif o == OpCode.CHANGE_TRANSMITTER_TIMEOUT:
timeout = int(input("Specify timeout to set: "))
timeout = int(input("Specify timeout to set [ms]: "))
q.add_log_cmd(Info.CHANGE_TRANSMITTER_TIMEOUT)
q.add_pus_tc(
create_load_param_cmd(
pack_scalar_u8_parameter_app_data(
create_scalar_u32_parameter(
COM_SUBSYSTEM_ID,
0,
ParameterId.TRANSMITTER_TIMEOUT,
timeout,
)
).pack()
)
)
elif o == OpCode.READ_MODE: