Commit Graph

78 Commits

Author SHA1 Message Date
Robin Müller 8dc640c162
apply afmt, update .gitignore 2022-05-13 11:39:37 +02:00
Robin Müller c78b7c432b Merge branch 'development' into mueller/refactor-power-switch-if-etc 2022-05-09 11:02:45 +02:00
Steffen Gaisser 16714ceb40 Merge branch 'development' into gaisser_cuc_tests 2022-05-02 13:58:17 +02:00
Robin Müller 2c8531ea48 Merge remote-tracking branch 'upstream/development' into mueller/refactor-power-switch-if-etc 2022-04-27 08:45:04 +02:00
Robin Müller 5b7ca8c13c
update CHANGELOG.md, apply afmt 2022-04-27 08:39:21 +02:00
Robin Müller 88051c9302 Merge remote-tracking branch 'upstream/development' into mueller/refactor-power-switch-if-etc 2022-04-25 15:37:03 +02:00
Robin Müller ff98c42514 Merge branch 'development' into mueller/clock-addition 2022-04-25 14:54:22 +02:00
Robin Müller 82df132e7d
tests running again 2022-04-11 13:54:43 +02:00
Robin Müller b764194ed0
added more unit tests 2022-04-01 18:43:46 +02:00
Robin Müller 738f572043
added unit tests, minor API change 2022-04-01 18:38:25 +02:00
Steffen Gaisser 4f9797af3b Updated CCSDS CuC Functions 2022-03-28 21:24:33 +02:00
Steffen Gaisser b4effe7a46 Clang format 2022-03-28 18:33:24 +02:00
Steffen Gaisser e6e71436c2 Added more tests 2022-03-28 18:32:51 +02:00
Steffen Gaisser 0b3255e463 Fixed tests 2022-03-28 15:17:59 +02:00
Robin Müller b32d1da421
this should compile 2022-03-28 12:57:11 +02:00
Steffen Gaisser 665d8cd479 Applied clang format 2022-03-25 18:48:53 +01:00
Steffen Gaisser 10398855a9 Added more unittest coverage
Added Mutex for gmtime functions
Moved Statics used in ClockCommon to ClockCommon
2022-03-25 18:47:31 +01:00
Robin Müller 522cbc7f3d
Merge remote-tracking branch 'upstream/development' into mueller/version-getter-upstream 2022-03-14 14:38:27 +01:00
Robin Müller ce5bcc5897
bugfix 2022-03-14 14:37:41 +01:00
Robin Müller 14ac852b7e
this tests even a bit more 2022-03-10 09:44:06 +01:00
Robin Müller 6b1a81ee92
minor tweaks 2022-03-10 09:40:34 +01:00
Robin Müller 3779b44813
added some more minor tests 2022-03-10 09:37:57 +01:00
Robin Müller 7daa9812ff added tests 2022-03-10 09:35:10 +01:00
Steffen Gaisser 445d5dd6f0 Added Checks for CDSShort in unittests 2022-03-09 18:56:08 +01:00
Steffen Gaisser a4f97a7ba7 Fixed another issue of time checks 2022-03-07 18:33:24 +01:00
Steffen Gaisser 8b1af232c3 Added Tests for CCSDS Time, fixed LPM Test
Changed behaviour of Host and Linux Clock
2022-03-07 18:22:10 +01:00
Steffen Gaisser 68ca6fd122 Merge branch 'development' into gaisser_compiler_flags 2022-02-28 15:29:57 +01:00
Steffen Gaisser 09815f5cce Clang format 2022-02-23 18:24:07 +01:00
Steffen Gaisser f6357b4531 WIP compiler Flags and new unit tests for fixes 2022-02-23 18:23:22 +01:00
Steffen Gaisser d6508e23b6 Added more coverage and Documentation 2022-02-23 12:12:49 +01:00
Steffen Gaisser 4862edfdb5 Clang format 2022-02-22 13:42:56 +01:00
Steffen Gaisser a50b52df51 Fixed an issue in host OSAL and added more coverage to IER 2022-02-22 13:37:28 +01:00
Steffen Gaisser 45ea09291a Still test for InternalError Reporter 2022-02-18 19:57:36 +01:00
Steffen Gaisser b7f3eff742 WIP unit tests 2022-02-18 19:08:06 +01:00
Robin Müller 22bc300902 increase other limits 2022-02-14 16:14:14 +01:00
Robin Müller 0d38ac62d8 this should work an ALL systems 2022-02-14 16:12:48 +01:00
Robin Müller d53c7e1190 increase test limit 2022-02-14 16:00:43 +01:00
Robin Müller 4f87e24f60
increase test limit 2022-02-10 14:08:52 +01:00
Robin Müller ddcac2bbac
reapply clang format 2022-02-02 10:29:30 +01:00
Robin Müller e5cc7069a6
Merge remote-tracking branch 'upstream/development' into mueller/cfdp-pdus 2022-02-02 10:19:31 +01:00
Robin Müller e0c50477cb
it actually was an uninitialized array 2022-02-02 10:00:57 +01:00
Robin Müller acbc2cd749
valgrind why 2022-02-01 18:04:08 +01:00
Robin Müller 368481f88b
move strcmp outside of macro 2022-02-01 14:04:13 +01:00
Robin Müller d2b561ba2f
test 2022-02-01 13:57:27 +01:00
Robin Müller 371ff931bf
Linux CommandExecutor
The CommandExecutor helper class can execute shell commands in blocking and non-blocking mode
This class is able to execute processes by using the Linux popen call. It also has the capability of writing
the read output of a process into a provided ring buffer.

The executor works by first loading the command which should be executed and specifying whether
it should be executed blocking or non-blocking. After that, execution can be started with the execute call.

Using non-blocking mode allows to execute commands which might take a longer time in the background,
and allowing the user thread to check completion status with the check function

Moved to HAL like requested in code review and unit tested with failing commands as well.
Also, Linux HAL components are compiled by default now unless explicitely disabled.
2022-01-26 12:11:52 +01:00
Robin Müller 7a84dff7d6
maybe this fixes the build error? 2021-12-06 16:23:09 +01:00
Robin Müller 5907f8ee9d
Added CFDP packet stack
This PR adds the packet stack for the CCSDS File Delivery Protocol.
It also refactors the existing TMTC infastructure to allow sending
of CFDP packets to the CCSDS handlers.

This includes the whole PDU (Protocol Data Unit) stack:

- File Data PDUs

and all file directive PDUs

- ACK PDU
- NAK PDU
- Metadata PDU
- Finished PDU
- Prompt PDU
- Keep Alive PDU
- EOF PDU

The PR includes a full set of unittests for the packet stack
with a coverage of 90+ %.

The refactoring of the existing TMTC infastructure includes non-ideal
solutions like diamond inheritance.
Avoiding this solution would require refactoring the packet stack.
This would be a good idea anyway because the existing stack is tightly
coupled to the FSFW, making reuse more difficult if only the stack is
planned to be used without the store functionalities etc.

The PDU implementation provided here is only weakly coupled to the FSFW,
only using components like returnvalues or the Serialization modules.
There are dedicated serializers and deserializers, which also helps in
creating small focused modules which are easy to test.

Some of the modules here were provied by Matthias Tompert.
2021-12-03 15:37:49 +01:00
Robin Müller 9c5e3565c6 Merge branch 'development' into mueller/serializeif-update 2021-11-24 18:53:28 +01:00
Robin Müller 05c4f4fadc
Bugfix for Packet ID getters
- Also added related unittests
2021-11-18 19:56:24 +01:00
Robin Müller 30217aa42b
updated SerializeAdapter.h
- Updates `SerializerAdapter` to also take simple pointer and simply assign the serialized and deSerialized size
- Added related unittests
2021-11-10 18:51:56 +01:00