LauncherLover
New member
Hello everyone,
I'm currently working on a project that utilizes Orbiter as a data visualization tool for output from a launch simulator I have in Simulink. I have managed to replicate the file structure with the .att, .pos, and .atc files, along with other necessary files to achieve this goal. I have successfully visualized the data I have after applying all the necessary rotation matrices to switch from ECI to the ECPLIPTIC reference frame. However, I am encountering an issue.
It seems that there might be a discrepancy in the definitions of time or the way the Earth rotates between my simulator and Orbiter, as my launcher appears to be displaced by several meters from where I would expect it to be (I have already taken into account that in Orbiter, the Earth is spherical with a radius of 6371.01 km).
Do you have any ideas on how I can solve this? Some thoughts I've had include:
I'm currently working on a project that utilizes Orbiter as a data visualization tool for output from a launch simulator I have in Simulink. I have managed to replicate the file structure with the .att, .pos, and .atc files, along with other necessary files to achieve this goal. I have successfully visualized the data I have after applying all the necessary rotation matrices to switch from ECI to the ECPLIPTIC reference frame. However, I am encountering an issue.
It seems that there might be a discrepancy in the definitions of time or the way the Earth rotates between my simulator and Orbiter, as my launcher appears to be displaced by several meters from where I would expect it to be (I have already taken into account that in Orbiter, the Earth is spherical with a radius of 6371.01 km).
Do you have any ideas on how I can solve this? Some thoughts I've had include:
- Upon initializing the scenario (with the launcher at the exact launch point), somehow reading its state vector and rescaling the data to start from that point. However, I would prefer to do this automatically from my MATLAB code, without having to open Orbiter, read the state vector in the ScnEditor, and apply the correction (although I could consider it as a last resort if necessary).
- Having a function that, given a date, applies a correction in the form of a time delay to the date I am inputting into Orbiter so that it starts from where it should.