Update FSFW from Upstream #27

Merged
muellerr merged 523 commits from mueller/update-from-upstream into develop 2022-05-17 10:06:59 +02:00
Owner
No description provided.
muellerr added 523 commits 2022-05-17 10:06:24 +02:00
- 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`
- Updates `SerializerAdapter` to also take simple pointer and simply assign the serialized and deSerialized size
- Added related unittests
Reviewed-on: fsfw/fsfw#511
Reviewed-on: fsfw/fsfw#510
- Also added related unittests
Reviewed-on: fsfw/fsfw#524
- Added functionality to open HTML report immediately
- Added another helper script to automatically generate unittest build
  folder
Reviewed-on: fsfw/fsfw#525
Reviewed-on: fsfw/fsfw#513
This PR introduces the generation of documentation based on
this excellent blog post: https://devblogs.microsoft.com/cppblog/clear-functional-c-documentation-with-sphinx-breathe-doxygen-cmake/

It combines the tools Sphinx, Doxygen and Breathe to generate good
looking HTML documentation conveniently which can be hosted easily.

The helper scripts were unified and there is now one helper.py script
which can be used to create, build and open both tests and documentation.
"./helper.py -h" can be used to get the different options.

This PR also contains some smaller fixes which were necessary for the docs
to build
1. Added .clang-format file which contains information for the
   clang-format tool on how to format source files
2. Added shell helper script to apply all changes on HAL soures,
   test sources and primary sources

The shell script was not applied yet. This should be done shortly
before introducing the release. Also, it might be good idea to provide
instructions on how to set up the formatter for Eclipse
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.
Reviewed-on: fsfw/fsfw#526
Reviewed-on: fsfw/fsfw#529
Reviewed-on: fsfw/fsfw#527
Reviewed-on: fsfw/fsfw#530
Reviewed-on: fsfw/fsfw#532
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.
1. Install Catch2 from sources inside a Docker stage/layer
2. Some tweaks to Jenkinsfile
- Always clean and rebuild docker image.
- Use single docker container
Reviewed-on: fsfw/fsfw#538
Reviewed-on: fsfw/fsfw#533
Reviewed-on: fsfw/fsfw#536
Reviewed-on: fsfw/fsfw#528
Reviewed-on: fsfw/fsfw#534
Reviewed-on: fsfw/fsfw#542
Reviewed-on: fsfw/fsfw#546
Reviewed-on: fsfw/fsfw#545
Reviewed-on: fsfw/fsfw#544
Reviewed-on: fsfw/fsfw#548
Reviewed-on: fsfw/fsfw#549
Reviewed-on: fsfw/fsfw#539
Reviewed-on: fsfw/fsfw#543
Reviewed-on: fsfw/fsfw#552
Reviewed-on: fsfw/fsfw#553
Reviewed-on: fsfw/fsfw#551
Reviewed-on: fsfw/fsfw#554
Reviewed-on: fsfw/fsfw#562
Reviewed-on: fsfw/fsfw#558
Reviewed-on: fsfw/fsfw#559
Reviewed-on: fsfw/fsfw#557
Reviewed-on: fsfw/fsfw#564
Reviewed-on: fsfw/fsfw#563
Reviewed-on: fsfw/fsfw#560
Reviewed-on: fsfw/fsfw#569
Reviewed-on: fsfw/fsfw#570
Reviewed-on: fsfw/fsfw#561
Reviewed-on: fsfw/fsfw#568
- Initialize line state
Changed behaviour of Host and Linux Clock
Reviewed-on: fsfw/fsfw#571
Reviewed-on: fsfw/fsfw#572
Reviewed-on: fsfw/fsfw#573
Reviewed-on: fsfw/fsfw#574
Reviewed-on: fsfw/fsfw#575
Reviewed-on: fsfw/fsfw#577
Reviewed-on: fsfw/fsfw#578
Reviewed-on: fsfw/fsfw#576
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
- timeval to TimeOfDay_t
Added Mutex for gmtime functions
Moved Statics used in ClockCommon to ClockCommon
Reviewed-on: fsfw/fsfw#585
Reviewed-on: fsfw/fsfw#582
Reviewed-on: fsfw/fsfw#587
Reviewed-on: fsfw/fsfw#591
- Written by David Woodward as part of the SOURCE project
- Adaptions to make it more generic and compatible to FSFW
Reviewed-on: fsfw/fsfw#588
- Generic code was duplicated across all OSALs.
  Is contained in generic base class now
- Remove duplicate documentation
Reviewed-on: fsfw/fsfw#595
Reviewed-on: fsfw/fsfw#597
Reviewed-on: fsfw/fsfw#599
- Instead of using FetchContent
- Separate folder for easier update and for distintion
- LICENSE file included
Return values from configureGpios were not checked
Reviewed-on: fsfw/fsfw#583
Reviewed-on: fsfw/fsfw#592
Reviewed-on: fsfw/fsfw#584
Reviewed-on: fsfw/fsfw#602
Reviewed-on: fsfw/fsfw#598
Reviewed-on: fsfw/fsfw#604
Reviewed-on: fsfw/fsfw#605
Reviewed-on: fsfw/fsfw#607
Reviewed-on: fsfw/fsfw#611
Reviewed-on: fsfw/fsfw#593
Reviewed-on: fsfw/fsfw#621
Reviewed-on: fsfw/fsfw#622
Reviewed-on: fsfw/fsfw#617
Reviewed-on: fsfw/fsfw#614
Reviewed-on: fsfw/fsfw#618
Reviewed-on: fsfw/fsfw#606
Reviewed-on: fsfw/fsfw#616
Reviewed-on: fsfw/fsfw#590
Reviewed-on: fsfw/fsfw#619
Reviewed-on: fsfw/fsfw#626
Reviewed-on: fsfw/fsfw#612
Reviewed-on: fsfw/fsfw#596
Reviewed-on: fsfw/fsfw#594
Reviewed-on: fsfw/fsfw#601
muellerr merged commit ee2f8d6956 into develop 2022-05-17 10:06:59 +02:00
muellerr deleted branch mueller/update-from-upstream 2022-05-17 10:07:00 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: KSat/fsfw#27
No description provided.