Yeah, as the title says, I want to know how long time there is until I pass a node.
The result will be used to show the time until a spacecraft passes the equator in a MFD, so I can know all the parameters that Orbiter gives me.
I can myself find a value which goes down to zero when I pass the equator, but it doesn't count in a linear fashion.
For that method, I use the following code
But as the rate of change for TrueAnomaly changes (dTrA/dt is not constant for non-circular orbit), the calculated time to node will not show the true time to passage, but will speed up counting when moving fast and slow down the counting when moving slow.
I guess the solution would be to solve some differential equation, but what equation? I have searched the Internet for answers, but found nothing, so now I turn to you.
The result will be used to show the time until a spacecraft passes the equator in a MFD, so I can know all the parameters that Orbiter gives me.
I can myself find a value which goes down to zero when I pass the equator, but it doesn't count in a linear fashion.
For that method, I use the following code
PHP:
AngleOfPerigee = LongitudOfPeriapsis - LongitudeOfAscendingNode;
AngleOfNode = AngleOfPerigee + TrueAnomaly;
AngleUntilNode = pi - AngleOfNode;
TimeUntilNode = OrbitalPeriod * AngleUntilNode / 2pi;
But as the rate of change for TrueAnomaly changes (dTrA/dt is not constant for non-circular orbit), the calculated time to node will not show the true time to passage, but will speed up counting when moving fast and slow down the counting when moving slow.
I guess the solution would be to solve some differential equation, but what equation? I have searched the Internet for answers, but found nothing, so now I turn to you.