parameter command to change transmitter timeout
This commit is contained in:
parent
a06f703d6f
commit
6228181357
@ -21,6 +21,11 @@ from tmtccmd.tc.pus_20_fsfw_param import (
|
|||||||
pack_scalar_u8_parameter_app_data,
|
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):
|
class ParameterId(enum.IntEnum):
|
||||||
DATARATE = 0
|
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)
|
create_mode_command(COM_SUBSYSTEM_ID, Submode.RX_AND_TX_CARRIER_WAVE, 0)
|
||||||
)
|
)
|
||||||
elif o == OpCode.CHANGE_TRANSMITTER_TIMEOUT:
|
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_log_cmd(Info.CHANGE_TRANSMITTER_TIMEOUT)
|
||||||
q.add_pus_tc(
|
q.add_pus_tc(
|
||||||
create_load_param_cmd(
|
create_load_param_cmd(
|
||||||
pack_scalar_u8_parameter_app_data(
|
create_scalar_u32_parameter(
|
||||||
COM_SUBSYSTEM_ID,
|
COM_SUBSYSTEM_ID,
|
||||||
0,
|
0,
|
||||||
ParameterId.TRANSMITTER_TIMEOUT,
|
ParameterId.TRANSMITTER_TIMEOUT,
|
||||||
timeout,
|
timeout,
|
||||||
)
|
).pack()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
elif o == OpCode.READ_MODE:
|
elif o == OpCode.READ_MODE:
|
||||||
|
Loading…
Reference in New Issue
Block a user