Replies: 2 comments
-
Here's an example of returning a complex type from a port call You can return a serialized F' type like what you can see there, or just return a normal C++ object/struct |
Beta Was this translation helpful? Give feedback.
-
How your project handles moving data around is left up to the project. For passive components using For active components one typically uses a "callback" model where a port is sent, and the receiving component calls another port when finished. Return values are passed as arguments to this return port. This method comes with slightly added complexity as the source component needs both a send call and a handler to respond when finished. In general, one first determines if the components need to be |
Beta Was this translation helpful? Give feedback.
-
Hi,
The target for most space systems is to operate with mostly passive components to mitigate scheduling risks.Therefore you typically use a sequential execution pattern with normal function calls e.g. send necessary execution information and get the results back e.g. via reference. As example with a passive master component (MC) and passive slave components.
In Fprime that's an issue, as we want to be modular with all component, communication types. So a serialization is typically used to be compatible with a TMTC design pattern.
Here my questions
Thank you in advance for your inspiration!
Beta Was this translation helpful? Give feedback.
All reactions