Component initialization that allows logging #3589
Replies: 3 comments 6 replies
-
|
@keck-in-space You should be able to do your https://github.com/nasa/fprime/blob/devel/Ref/Top/RefTopology.cpp#L174 At that point, all the ports are connected, so you should see messages. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks Tim. I added the call to my initializer at the end of the That function does create a file, which I verified is being created. So, the function runs, but no logs are output, not even in the The last step I tried is to wire up the initialize call to a command, which does run and generate event logs, so I know that function does create events correctly. Any other ideas as to why I can't get logs through even when calling the initializer at the end of the |
Beta Was this translation helpful? Give feedback.
-
|
Does anyone have any possible fixes for this? I am still experiencing this issue in F Prime 4.0.0. I cannot find a way to run an initializer for a component that has the ability to update |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to be able to initialize a database connection as part of my component starting up. I can do this fine in the constructor, but due to how F-Prime starts up, the logging ability is not enabled at the constructor phase, so I have limited options for alerting via GDS that the connection attempt failed or if any issues were encountered.
I am fine with moving this to another function and having it called by F-Prime elsewhere, but I do not know how to do this.
I've tried creating a public
initializecall in the component class and calling that at the end ofsetupTopology, but that does not appear to work. At least, I can't get any logging to occur there.My basic question is: Is there some way to ask F-Prime to run an
initializecall for a specific component after the system has been brought up and it is possible to log events and telemetry?Beta Was this translation helpful? Give feedback.
All reactions