Skip to content
Snippets Groups Projects
Commit 6a2acc4a authored by Robin Mueller's avatar Robin Mueller
Browse files

module tests wait times larger

parent 9e812a3c
No related branches found
No related tags found
No related merge requests found
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="OBSW_TmTcClient Module Test Serial" type="PythonConfigurationType" factoryName="Python" folderName="Serial Communication">
<configuration default="false" name="tmtcclient Module Test Serial" type="PythonConfigurationType" factoryName="Python" folderName="Serial Communication">
<module name="tmtc" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
......
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="OBSW_UdpClient Service 17 Serial" type="PythonConfigurationType" factoryName="Python" folderName="Serial Communication">
<configuration default="false" name="tmtcclient Service 17 Serial" type="PythonConfigurationType" factoryName="Python" folderName="Serial Communication">
<module name="tmtc" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
......
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="OBSW_TmTcClient Software Serial" type="PythonConfigurationType" factoryName="Python" folderName="Serial Communication">
<configuration default="false" name="tmtcclient Software Serial" type="PythonConfigurationType" factoryName="Python" folderName="Serial Communication">
<module name="tmtc" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
......
......@@ -14,18 +14,19 @@ from comIF.obsw_com_interface import CommunicationInterface, PusTmListT, PusTmQu
PusTmTupleQueueT, PusTmInfoQueueT
from tm.obsw_pus_tm_factory import pus_telemetry_factory
from tc.obsw_pus_tc_base import PusTcInfoT
from utility.obsw_tmtc_printer import TmTcPrinterT
from utility.obsw_tmtc_printer import TmTcPrinter
import config.obsw_config as g
# pylint: disable=abstract-method
# pylint: disable=arguments-differ
# pylint: disable=too-many-arguments
# TODO: decouple printing from receiving. Printing takes a long time and blocks!
class EthernetComIF(CommunicationInterface):
"""
Communication interface for UDP communication.
"""
def __init__(self, tmtc_printer: TmTcPrinterT, tmTimeout: float, tcTimeoutFactor: float,
def __init__(self, tmtc_printer: TmTcPrinter, tmTimeout: float, tcTimeoutFactor: float,
receiveAddress: g.ethernetAddressT, sendAddress: g.ethernetAddressT):
super().__init__(tmtc_printer)
self.tm_timeout = tmTimeout
......
......@@ -182,7 +182,7 @@ def set_communication_interface(tmtc_printer: TmTcPrinterT) -> ComIfT:
else:
com_port = g.G_COM_PORT
baud_rate = 115200
g.G_SERIAL_TIMEOUT = 0.03
g.G_SERIAL_TIMEOUT = 0.01
communication_interface = SerialComIF(
tmtc_printer=tmtc_printer, com_port=com_port, baud_rate=baud_rate,
serial_timeout=g.G_SERIAL_TIMEOUT)
......
......@@ -25,7 +25,7 @@ class TestService2(TestService):
print("Testing Service 2")
# all commands must be sent sequentially, not as a burst
cls.wait_intervals = [1, 2, 3, 4]
cls.wait_time = [2, 2, 2, 3]
cls.wait_time = [2.5, 2.5, 2.5, 3]
pack_service2_test_into(cls.test_queue)
def test_service2(self):
......@@ -104,7 +104,7 @@ class TestService8(TestService):
super().setUpClass()
print("Testing Service 8")
cls.wait_intervals = [1, 2, 3, 4]
cls.wait_time = [1.5, 0.7, 1.0, 1.1]
cls.wait_time = [1.5, 1.5, 1.5, 1.5]
cls.data_reply_count = 0
pack_service8_test_into(cls.test_queue)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment