Regarding BSK_sim's inability to configure runtime and perform simulation #714
Replies: 3 comments 2 replies
-
You can run the simulation for 10s, restart it, then continue. Or, you can look at the event handler system to setup an event to trigger this reset after 10s. You see the event handler system uses in bskSim to change flight modes. The event handling system is not extensively documents, you might have to follow the code. |
Beta Was this translation helpful? Give feedback.
-
This scenario talks more about using the event system and might be helpful. |
Beta Was this translation helpful? Give feedback.
-
Howdy @wanglishuo , I don't be able to help you debug your specific scenario. I'm assuming you were able to run the tutorial scenario? You can debug yours buy building off the sample script. Also, you have access to all the source code, so you can trace the code execution to see where something is not happening as you expect. General comments, the event handler executes some python script that you provide. Makes sure that this code can execute from the location it is being called. Also, once an event is called it it turned off by default to avoid having it being called repeatably. You can play with the |
Beta Was this translation helpful? Give feedback.
-
@schaubh Hi , professor!
I am currently working on a project using BSK_sim to remove reaction wheel momentum using a thruster,I use three connected modules to dump momentum,as shown in this plan.
https://hanspeterschaub.info/basilisk/examples/scenarioMomentumDumping.html#scenariomomentumdumping
I have a question. Module: ThrMomentumManagement cannot run at the beginning and needs to be restarted after ten seconds. In the original plan, the method
ThrDesatControl.Reset
can be used to restart it. But how should I use it in BSK_sim? Module: ThrMomentumManagement is in the FSW module, but it seems that I cannot call it when configuring runtime. May I ask if there are any examples in this area for my reference? How can I solve it?Thank you very much for your answer!
Beta Was this translation helpful? Give feedback.
All reactions