Do not use BSK_Sim to perform multiple tasks #722
Replies: 1 comment
-
There are infinite variations in how you can code up Basilisk based simulations in python. We show the default flat format where we load create and configure all the modules in the main routine, and bskSim then show a way to packages dynamics and FSW into classes. This is really just a manner of packing and managing complex simulations. When you say "switch between these two tasks freely", do you mean not using the python event system, or starting and stopping the simulation, but through the actions of a module? You could make a flight director module that controls what flight mode you are in and output this as a message. The BSK event system would then read and monitor this message content to determine what flight mode to use. The variations are endless. |
Beta Was this translation helpful? Give feedback.
-
@schaubh Hello Professor
I have established multiple tasks (such as the reaction wheel momentum desaturation task and the sun point task). These two tasks use different flight software but have the same dynamic environment. I want to switch between these two tasks freely while executing the program. I use "BSK_Sim" to implement this solution by changing "modeRequest". But sometimes I feel it's not very convenient. Is there a way to implement the above solution if I don't use BSK_Sim? Can I put these two tasks into the same Python program, so that I can switch tasks freely while sharing the same dynamic environment?
Beta Was this translation helpful? Give feedback.
All reactions