WIP: CFDP Init #512

Closed
muellerr wants to merge 9 commits from KSat:mueller/cfdp-init into development
Owner

Will probably be replaced by #523

OLD:

  • Some of these modules were provided by @mtompert
  • Some architecture changes for tmtcpacket. Those were necessary to support the additional CFDP CCSDS packet type
  • Adds first version of CCSDS file delivery protocol (CFDP) modules. It was already possible to send dedicated CFDP packets to the OBSW with this
  • This will be the foundation for alle PDU implementations which will operate on static store data in place and the CFDP handler which takes care of generic tasks and which is the base class for a user CFDP entity
Will probably be replaced by #523 OLD: - Some of these modules were provided by @mtompert - Some architecture changes for `tmtcpacket`. Those were necessary to support the additional CFDP CCSDS packet type - Adds first version of CCSDS file delivery protocol (CFDP) modules. It was already possible to send dedicated CFDP packets to the OBSW with this - This will be the foundation for alle PDU implementations which will operate on static store data in place and the CFDP handler which takes care of generic tasks and which is the base class for a user CFDP entity
muellerr added 6 commits 2021-10-20 17:05:15 +02:00
muellerr added the
Breaking API Change
label 2021-10-20 17:05:24 +02:00
muellerr added this to the v3.0.0 milestone 2021-10-20 17:05:28 +02:00
Author
Owner

I actually refactored the RedirectableDataPointerIF* to also take a size_t maxSize argument and a void* args. The max size argument is useful if the data setter is already performing some sanity checks and the void* argument allows some flexibility for the future. I might consider merging this feature inside this PR as well.

I actually refactored the `RedirectableDataPointerIF*` to also take a `size_t maxSize` argument and a `void* args`. The max size argument is useful if the data setter is already performing some sanity checks and the void* argument allows some flexibility for the future. I might consider merging this feature inside this PR as well.
mohr modified the milestone from v3.0.0 to v0.2.0 2021-10-25 14:12:16 +02:00
mohr modified the milestone from v0.2.0 to v3.0.0 2021-10-25 15:23:10 +02:00
muellerr added 1 commit 2021-10-25 15:40:06 +02:00
Author
Owner

It's actually tricky to make assumptions on whether RedirectableDataPointerIF acts on read-only data or also allows changing the data. In many cases, the constness of the data pointer is cast away because the data is internally represented by a non-const struct. I would propose to either use a regular uint8_t* without const or make a new interface function for read-only data. This makes it clearer to the user on whether a particular implementation also changes the data store in place or whether it leaves the data as is (even if it cast aways the constness internally).

It's actually tricky to make assumptions on whether `RedirectableDataPointerIF` acts on read-only data or also allows changing the data. In many cases, the constness of the data pointer is cast away because the data is internally represented by a non-const struct. I would propose to either use a regular `uint8_t*` without `const` or make a new interface function for read-only data. This makes it clearer to the user on whether a particular implementation also changes the data store in place or whether it leaves the data as is (even if it cast aways the constness internally).
muellerr added 1 commit 2021-10-28 09:20:25 +02:00
muellerr added 1 commit 2021-11-08 14:57:50 +01:00
gaisser requested review from mohr 2021-11-08 15:14:34 +01:00
gaisser reviewed 2021-11-08 15:16:38 +01:00
@ -0,0 +17,4 @@
* @ingroup tmtcpackets
*/
class TcPacketPusBase : public SpacePacketBase,
virtual public RedirectableDataPointerIF {
Owner

Diamond inheritance.

Diamond inheritance.
Author
Owner

Might be a better idea to just merge the full CFDP packet stack once it is finished..

Might be a better idea to just merge the full CFDP packet stack once it is finished..
muellerr changed title from CFDP Init to WIP: CFDP Init 2021-11-15 14:22:11 +01:00
muellerr closed this pull request 2021-12-01 16:20:50 +01:00
Author
Owner

Will be replaced by #527

Will be replaced by #527

Pull request closed

Sign in to join this conversation.
No description provided.