Commit Graph

289 Commits

Author SHA1 Message Date
Robin Müller 2d0e4ba951
applied afmt 2022-04-01 18:38:54 +02:00
Robin Müller 0d549b687d Merge branch 'mueller/refactor-power-switch-if-etc' of https://egit.irs.uni-stuttgart.de/eive/fsfw into mueller/refactor-power-switch-if-etc 2022-04-01 18:38:34 +02:00
Robin Müller 738f572043
added unit tests, minor API change 2022-04-01 18:38:25 +02:00
Robin Müller cab508fd64 Merge branch 'development' into mueller/refactor-power-switch-if-etc 2022-04-01 17:28:14 +02:00
Robin Müller c20be13733
change switch type in header as well 2022-04-01 16:40:13 +02:00
Robin Müller fcb6437388 Merge branch 'development' into mueller/ipc-pass-arbitrary-args-to-mq 2022-03-31 14:42:15 +02:00
Jakob Meier 6c1db8473b get alternative reply from device command info 2022-03-31 14:36:45 +02:00
Robin Müller b42987059a
make dummy power switcher a system object 2022-03-30 17:41:38 +02:00
Steffen Gaisser a3930dafc5 Moved unused constructors 2022-03-28 21:37:25 +02:00
Steffen Gaisser 4f9797af3b Updated CCSDS CuC Functions 2022-03-28 21:24:33 +02:00
Steffen Gaisser a887f852c8 Merge branch 'development' into mueller/clock-addition 2022-03-28 15:45:58 +02:00
Steffen Gaisser cde184f428 Merge branch 'development' into mohr/task 2022-03-28 15:18:23 +02:00
Steffen Gaisser 631a531212 Merge branch 'development' into mueller/clock-addition 2022-03-28 14:51:23 +02:00
Ulrich Mohr 916ed3f56a added function to add component to a periodic task by pointer 2022-03-28 13:50:42 +02:00
Robin Müller 23af170229
small tweaks 2022-03-28 12:59:03 +02:00
Robin Müller b32d1da421
this should compile 2022-03-28 12:57:11 +02:00
Robin Müller 6f0362b956
refactor power module 2022-03-28 12:48:15 +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 d0fec93dc3
argument order inversion 2022-03-25 13:42:49 +01:00
Robin Müller 59ab54b2fb
call corrections 2022-03-25 13:41:37 +01:00
Robin Müller 7095999bd2
remove CCSDSTime function 2022-03-25 13:34:35 +01:00
Robin Müller 7ffb4107d2 added missing docs 2022-03-25 13:34:08 +01:00
Robin Müller 9ce59d3c75
added an additional conversion function
- timeval to TimeOfDay_t
2022-03-22 17:54:09 +01:00
Robin Müller a0dfdfab2c
Allow passing a MqArgs struct to the MQ creation
The struct contains context information (which can be extended)
and an arbitrary user argument in form of a void pointer.
This makes the API a lot more flexible
2022-03-22 17:49:22 +01:00
Robin Müller 3e17011087
small tweaks for local datapool code 2022-03-22 17:42:56 +01:00
Steffen Gaisser d2dd16aef3 Merge branch 'development' into mueller/define-fsfw-disabled-printout-upstream 2022-03-14 15:12:37 +01:00
Robin Müller bc95e7c886 Merge branch 'mueller/event-update' of https://egit.irs.uni-stuttgart.de/eive/fsfw into mueller/event-update 2022-03-14 15:08:54 +01:00
Robin Müller fca43b3d34
run auto-formatter 2022-03-14 15:08:45 +01:00
Robin Müller 48c5c3fbd5 Merge branch 'development' into mueller/event-update 2022-03-14 15:07:25 +01:00
Steffen Gaisser 6998626ad4 Merge branch 'development' into mueller/define-fsfw-disabled-printout-upstream 2022-03-14 15:02:07 +01:00
Steffen Gaisser 24ad858b64 Merge branch 'development' into mueller/countdown-improvement-upstream 2022-03-14 14:46:54 +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 0bdcb40609 minor event changes 2022-03-11 14:25:34 +01:00
Robin Müller e684680d60
avoid namespace pollution 2022-03-10 09:58:37 +01:00
Robin Müller aa5d1042f0 undef major and minor 2022-03-10 09:57:37 +01:00
Robin Müller 7daa9812ff added tests 2022-03-10 09:35:10 +01:00
Robin Müller ca508bfe61 getter not required anymore 2022-03-09 19:10:33 +01:00
Robin Müller 345a799031 improved version.h 2022-03-09 19:08:17 +01:00
Robin Müller 238baa8597 call setTimeout 2022-03-08 11:54:20 +01:00
Robin Müller 7932afc315
small form change 2022-03-08 10:13:11 +01:00
Robin Müller d1e3dc4d49 define FSFW_DISABLE_PRINTOUT in any case 2022-03-08 10:12:02 +01:00
Robin Müller ca70c8c614 function to get fsfw version 2022-03-08 10:07:07 +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 7db11588b4 Merge branch 'development' into gaisser_compiler_flags 2022-03-07 14:39:01 +01:00
Robin Müller 10ffa2f44a Merge branch 'development' into mueller/dev-printout-runtime-configurable 2022-03-07 14:20:56 +01:00
Ulrich Mohr 117747970d some forgotten size_t 2022-03-05 22:03:25 +01:00
Robin Müller 95078e1103
Merge remote-tracking branch 'upstream/development' into mueller/dev-printout-runtime-configurable 2022-02-28 15:52:54 +01:00
Steffen Gaisser 68ca6fd122 Merge branch 'development' into gaisser_compiler_flags 2022-02-28 15:29:57 +01:00
Robin Müller 19d217e3b9
Merge remote-tracking branch 'upstream/development' into mueller/dev-printout-runtime-configurable 2022-02-28 15:23:54 +01:00
Steffen Gaisser 20928732ec Merge branch 'development' into gaisser_unit_test_internal_error 2022-02-28 15:19:44 +01:00
Robin Müller cf45eca100
Merge remote-tracking branch 'upstream/development' into mueller/dev-printout-runtime-configurable 2022-02-28 15:00:38 +01:00
Robin Müller c0fa365f8f
Merge remote-tracking branch 'upstream/development' into mueller/delete-obsolete-module 2022-02-28 14:58:28 +01:00
Ulrich Mohr bbacdc5cac Merge pull request 'Linux HAL: Add I2C wiretapping option' (#559) from eive/fsfw:mueller/hal-i2c-wiretapping into development
Reviewed-on: fsfw/fsfw#559
2022-02-28 14:55:21 +01:00
Steffen Gaisser 0e8328fca3 Fixed include based on Feedback 2022-02-24 11:22:51 +01:00
Steffen Gaisser 1ef3dae72e Fixed an missing include 2022-02-23 22:36:29 +01:00
Steffen Gaisser 32381a7872 Fixed an issue with wrong buffer size 2022-02-23 21:20:22 +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 d6d13eec95 Merge branch 'development' into gaisser_unit_test_internal_error 2022-02-23 12:37:55 +01:00
Steffen Gaisser d6508e23b6 Added more coverage and Documentation 2022-02-23 12:12:49 +01:00
Steffen Gaisser 2cb254a556 Removed unused code 2022-02-23 11:53:48 +01:00
Steffen Gaisser e5e85bcff9 still clang 2022-02-22 13:43:25 +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
Robin Müller aebd4817b8
periodic printouts are runtime configurable now 2022-02-22 11:33:41 +01:00
Robin Müller 6739890d53
add i2c wiretapping option 2022-02-22 11:19:49 +01:00
Robin Müller 90b8ad1e6d
apply clang format 2022-02-22 11:16:33 +01:00
Robin Müller 025f79fcb4
apply clang format 2022-02-22 11:16:14 +01:00
Robin Müller 6fb64f9ada
removed source from cmakelists.txt 2022-02-22 11:11:54 +01:00
Robin Müller 2f1b923009
this module should not be needed anymore 2022-02-22 11:06:00 +01:00
Steffen Gaisser b7f3eff742 WIP unit tests 2022-02-18 19:08:06 +01:00
Ulrich Mohr 9e958e752e applied clang format 2022-02-14 14:54:20 +01:00
Ulrich Mohr 9e6948a8d7 Merge pull request 'virtual function to print datasets' (#544) from meier/printDataSet into development
Reviewed-on: fsfw/fsfw#544
2022-02-07 14:42:17 +01:00
Jakob Meier 06ffe27fcc do send read hook 2022-02-03 10:46:14 +01:00
Jakob Meier e9b0951a95 virtual function to print datasets 2022-02-03 10:37:07 +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 Mueller 751de7accc
Merge remote-tracking branch 'upstream/development' into mueller/cfdp-pdus 2022-02-01 11:00:57 +01:00
Robin Müller 74ae3f1371 Merge remote-tracking branch 'upstream/development' into mueller/cmd-executor 2022-02-01 10:49:14 +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 78ddce249c try an optimization 2022-01-18 18:29:54 +01:00
David 661b7b44e0 improved win32 define 2021-12-12 19:28:51 +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
Steffen Gaisser e688105073 Merge branch 'development' into mueller/unittests-op-divider-bitutil 2021-11-15 14:23:34 +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
Robin Müller 0176c07886
use IF instead of void pointer 2021-11-10 18:49:29 +01:00
Robin Müller 6d5eb5b387
Op Divider and bitutility updates
- Added unittests for `PeriodicOperationDivider` and the `bitutil` helpers
- Some API changes: Removed redundant bit part, because these functions are already in a namespace
- Some bugfixes for `PeriodicOperationDivider`
2021-11-10 18:48:02 +01:00
Robin Müller cc7250fcf5
second cmake fix 2021-10-27 17:08:59 +02:00
Ulrich Mohr a506b94d7e Merge branch 'development' into mueller/arrayprinter-improvements 2021-10-25 14:09:08 +02:00
Robin Müller 07a0dd5331
this is the correct file 2021-10-22 11:32:28 +02:00
Robin Müller 7122c37511
updated function names 2021-10-18 18:26:03 +02:00
Robin Müller 84cd010a25 Merge branch 'mueller/tcp-keep-open-pr' of https://egit.irs.uni-stuttgart.de/eive/fsfw into mueller/tcp-keep-open-pr 2021-10-18 15:07:11 +02:00
Robin Müller a077a1b587
improved constexpr macros 2021-10-18 15:07:00 +02:00
Robin Müller b94baf838d Merge branch 'development' into mueller/tcp-keep-open-pr 2021-10-18 14:58:33 +02:00
Ulrich Mohr 084a3daec6 Merge pull request 'more printouts for rejected TC packets' (#505) from eive/fsfw:mueller/packet-check-printout into development
Reviewed-on: fsfw/fsfw#505
2021-10-18 14:44:40 +02:00
Robin Müller b23ed11c7e Merge branch 'development' into mueller/tcp-keep-open-pr 2021-10-18 14:44:26 +02:00