Problems with WGS84 Gravity Model in Simulink

5 次查看(过去 30 天)
Okay, I've been having a pretty significant issue with the WGS84 block in simulink.
In order to test it out I've been using an ISS orbit (taken from a TLE a few weeks ago).
WGS84 takes in LLA coordinates and outputs the acceleration due to gravity at that point in NED coordinates. Throughout the simulation, I keep track of the Julian Date (years) based on the epoch time and use it to find the Greenwich Mean Sidereal Time so I convert from between LLA, ECF, and ECI coordinates.
I'm very confident of my implementation of these as I've been doing that for a few years, though I have been double and triple checking just in case.
However I when rotating the acceleration due to gravity from NED to ECI and then integrating to get velocity and then once more for position, I get some very, very odd results.
While I can see the periodic nature of the elliptical orbit, there is an increasing linear trend that makes no sense. Over the course of 10 orbits or so the orbit increases by about 200 kilometers.
I've compared against STK results as well to double check and the WGS84 outputs make no sense.
I've considered everything from incorrectly calculating GMST, accidentally reversing the coordinate frame rotations (using quaternions), incorrectly implementing WGS84, issues with initial conditions, as well as issues with units.
At this point I have no idea what is going on. I've attached a plot to this post.
X-axis is time in seconds. Y-axis is radial magnitude of the orbit in kilometers. The blue line is the WGS84 output and the green is the STK output.
Settings being used in the WGS84 model:
WGS84 Exact MKS units INCLUDE Earth's Atmosphere EXLCUDE Precessing Reference Frame No centrifugal effects
Any ideas on what I might be doing wrong on my implementation?
  2 个评论
Eric
Eric 2013-5-30
This is all a bit over my head, but I wonder if there is anything in
that can help you double-check what's going on.
Joshua
Joshua 2013-5-30
Eric, that could possibly help out. I'll check it out.
Still not sure what the issue is. Judging by what looks to be a linear trend, it may be an issue with the sidereal time calculation.

请先登录,再进行评论。

回答(1 个)

Joshua
Joshua 2013-5-31
Still running into issues after re-checking all my reference frames. Has anyone else run into similar issues?

类别

Help CenterFile Exchange 中查找有关 Gravitation, Cosmology & Astrophysics 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by