Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split System Resources Into Version and System Reources Component #2604

Closed
LeStarch opened this issue Mar 19, 2024 · 4 comments
Closed

Split System Resources Into Version and System Reources Component #2604

LeStarch opened this issue Mar 19, 2024 · 4 comments
Assignees

Comments

@LeStarch
Copy link
Collaborator

LeStarch commented Mar 19, 2024

F´ Version
Affected Component

Feature Description

The System Resources component internalizes version telemetry, command, and events. We should build a new version component that does the following:

  1. Version events (EVRs) at start-up and upon command
  2. Version telemetry channels (EHA)
  3. Versions to track:
  4. Fprime framework version (git version of F´ repo)
  5. Project version (git version of project repo)
  6. Library versions (git version and name of each fprime-library repo)
@thomas-bc
Copy link
Collaborator

thomas-bc commented Mar 22, 2024

Potentially in scope: #1837 #1561

@Shivaly-Reddy
Copy link
Collaborator

@LeStarch : How do we track version at start-up? What part of the logic kicks of startup from version component?

@LeStarch
Copy link
Collaborator Author

@Shivaly-Reddy F´ Active components allow you to override the preamble function to do something right when their thread starts-up. This component is active, yes?

An example is:

void ActiveRateGroup::preamble() {
this->log_DIAGNOSTIC_RateGroupStarted();
}

Note: the task lifecycle looks like this:

  1. Call preamble
  2. Loop on "dispatch message"

Thus the preamble is called once, and then all the messages (commands and port invocations) are dispatched for the duration.

@Shivaly-Reddy
Copy link
Collaborator

Shivaly-Reddy commented Apr 24, 2024

Thanks @LeStarch. I was looking at FileDownlink preamble calls and was wondering about the component being active. It is currently a passive component, just because SystemResources was and because this is derived from it. I can switch it to an active component but looking into understanding all that entails an active component

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants