Hello,
we found a couple of issues with “pseudo-inertial” or “quasi-inertial” local orbital frames in Orekit:
first, the LocalOrbitalFrame class constructor hard-codes the resulting frame as non-pseudo-inertial (last argument to the super constructor is pseudoInertial = false)
public LocalOrbitalFrame(final Frame parent, final LOF lof,
final ExtendedPositionProvider provider,
final String name)
throws IllegalArgumentException {
super(parent, new LocalProvider(lof, provider, parent), name, false);
}
however, the LOF input to this constructor may be considered pseudo-inertial, as it is the case for all LOFType.*_INERTIAL frames, e.g. QSW_INERTIAL.
second, and most important, the implementation of LOF.transformFromInertial is counter-intuitive for LOF instances that are pseudo-inertial. In this case, the Cartesian part of the output Transform considers only the position of the spacecraft, but not its velocity:
default Transform transformFromInertial(final AbsoluteDate date, final PVCoordinates pv) {
if (isQuasiInertial()) {
return new Transform(date, pv.getPosition().negate(), rotationFromInertial(date, pv));
basically, the *_INERTIAL local orbital frames are centered on the spacecraft, but their velocity is that of their parent frame, i.e. the frame in which the spacecraft orbit is defined. However, we would expect the velocity of these frozen frames being that of the spacecraft, and not that of their parent frame.
In other words, we would expect that the only difference between a *_INERTIAL frame and its non-inertial counterpart (e.g. QSW_INERTIAL and QSW) is their rotation rate, which should be zero for the first, and non-zero for the second. So the only difference in their Transform to a common pseudo-inertial parent frame should be the rotation rate in the angular part of the transform.
What is the definition of “pseudo-inertial” in Orekit? And what do you think of the above?
Cheers,
Alberto