nasa / fprime

F´ - A flight software and embedded systems framework
https://fprime.jpl.nasa.gov
Apache License 2.0
10.02k stars 1.29k forks source link

Add component to store events in boot-persistent memory. #2607

Open timcanham opened 5 months ago

timcanham commented 5 months ago
F´ Version 3.4.3
Affected Component New component

Feature Description

Add a new component that would insert between components and Svc/ActiveLogger to store events in a memory FIFO that could be recovered after boot.

It would do the following:

1) Log the events in memory FIFOs provided by "Fw/MemAllocator". 2) Have separate FIFOs by type 3) Pass the events from an input port (from other components) to an output port (to Svc/ActiveLogger) 4) Upon startup, take any events in the memory FIFO and send them to the output port to Svc/ActiveLogger for downlink.

Rationale

An early version was part of Svc/ActiveLogger, but not all projects wanted or could use it. This approach makes it a "tinker-toy" component that can be inserted if needed.