Hi All;
As you know Simulink has a wonderful high precision orbit propagator block. This block is pretty much a closed (black) box such that you give all the inputs and start the simulation (i.e. propagtion) between time steps t_start upto t_end. It then outputs all the results as a batch after the simulation so the user can access position and velocity data.
Instead of running this script in one single batch, what I want to do is the following:
- 1) propagate the orbit at every time step (say every 1 second)
- 2) then get the position and velocity vector to MATLAB
- 3) do something with that R and V vectors
- 4) then go back to step 1 and propagate for next time step.
I tried different methods to do this. I tried pausing the sim or calling the entire simulator giving a delta simulation time of 1 second but it does not really work.
Is there anyway which I can do what I just explained.
Many thanks for responses ?
Gökhan