Logging in BSKSim script using SpacecraftDynamics module

Registered users can post general questions here
Forum rules
-Must be questions and discussion related to BSK software
Post Reply
SimonvO
Posts: 2
Joined: Fri Sep 07, 2018 6:50 pm

Logging in BSKSim script using SpacecraftDynamics module

Post by SimonvO » Fri Sep 07, 2018 6:58 pm

When trying to make a very simple example of a spacecraft orbiting the Earth using the SpacecraftDynamics module, I tried using the following line to log data from the SpacecraftDynamics object:

self.masterSim.TotalSim.logThisMessage(self.masterSim.DynModels.scSystem.primaryCentralSpacecraft.scStateOutMsgName, samplingTime)

After printing the scStateOutMsgName, it turns out that the message name is equal to "inertial_state_output". After running the code, it turns out that the data cannot be logged.

SimonvO
Posts: 2
Joined: Fri Sep 07, 2018 6:50 pm

Re: Logging in BSKSim script using SpacecraftDynamics module

Post by SimonvO » Fri Sep 07, 2018 7:01 pm

The problem is that the message name is not "inertial_state_output", but "spacecraft_inertial_state_output". Filling in this name manually results in the ability to log data. However, further research needs to be performed on how the message name is set in order to fully understand this problem.

Post Reply