We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31a061c commit a365eecCopy full SHA for a365eec
1 file changed
kessler/util.py
@@ -89,7 +89,8 @@ def from_cartesian_to_tle_elements(state):
89
inclination = kepl_el[2]
90
argument_of_perigee = kepl_el[4]
91
raan = kepl_el[3]
92
- mean_anomaly = kepl_el[5] - kepl_el[1]*np.sin(kepl_el[5])+np.pi
+ mean_anomaly = kepl_el[5] - kepl_el[1]*np.sin(kepl_el[5])
93
+ mean_anomaly = mean_anomaly%(2*np.pi)
94
return mean_motion, eccentricity, inclination, argument_of_perigee, raan, mean_anomaly
95
96
0 commit comments