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

added stubs

parent 8065d5a0
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,8 @@ class ModeList(enum.Enum):
SingleCommandMode = 2
ServiceTestMode = 3
SoftwareTestMode = 4
UnitTest = 5
BinaryUploadMode = 5
UnitTest = 6
class ComIF(enum.Enum):
......
......@@ -211,6 +211,11 @@ class TmTcHandler:
suite = unittest.TestLoader().loadTestsFromModule(obsw_pus_service_test)
unittest.TextTestRunner(verbosity=2).run(suite)
elif self.mode == g.ModeList.BinaryUploadMode:
# Upload binary, prompt user for input, in the end prompt for new mode and enter that
# mode
self.command_received = True
else:
logging.error("Unknown Mode, Configuration error !")
sys.exit()
......
"""
@brief DLE Encoder Implementation
@details
DLE encoding can be used to provide a simple transport layer for serial data.
A give data stream is encoded by adding a STX char at the beginning and an ETX char at the end.
All STX and ETX occurences in the packet are encoded as well so the receiver can simply look
for STX and ETX occurences to identify packets.
"""
# TODO: Implementation / Translation of C code
"""
@brief Hamming Code Implementation
@details
Hamming codes belong to the family of linear error correcting codes.
Documentation: https://en.wikipedia.org/wiki/Hamming_code
They can be used to identify up to two bit error and correct on bit error.
"""
# TODO: Implementation / Translation of C code
#!/usr/bin/python3.8
"""
@brief Binary Uploader Module
@details
This module will be used to upload binaries to the OBC via a communication port, given
a supplied binary. The binary will be sent via the specified communication interface.
It will be possible to encode the data (for example using DLE encoding)
"""
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