You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ This code is released under an unlicense. Do what you want with it completely a
13
13
The astrodynamics calculations are all implemented as static functions in the SGP4 class/module. The ElsetRec datastructure is used to maintain initialization state across those methods. For convenience, I have implemented the TLE class. The constructor accepts the two lines of the the two-line element set as arguments. To then propagate (simulate) the orbit, I have implemented a few getRV methods in each language. One will accept the number of minutes since the epoch as an argument. In most languages, I've also implemented a version of getRV that accepts a Date or DateTime object to simulate the orbit at a specific point in time. Sometimes, if I didn't find a helper class in the target language that I liked, I simply used the number of milliseconds since January 1, 1970 as the argument.
14
14
15
15
#Languages
16
+
I've delivered production code in all of these languages.
16
17
*[C](#c)
17
18
*[C++](#c-1)
18
19
*[C#](#c-2)
@@ -25,6 +26,10 @@ The astrodynamics calculations are all implemented as static functions in the SG
25
26
*[R](#r)
26
27
*[Ruby](#ruby)
27
28
29
+
I've only done my own projects in these languages.
30
+
*[Rust](#rust)
31
+
32
+
28
33
#C
29
34
30
35
gcc -o testsgp4 SGP4.c TLE.c TestSGP4.c -lm
@@ -117,3 +122,12 @@ The Ruby version was ported from the Python version. To run the code go to the r
117
122
ruby TestSGP4.rb
118
123
119
124
Typical Errors 0.006722191115878764 mm, 0.0004812040288887651 mm/s
125
+
126
+
127
+
#Rust
128
+
The Rust version was ported from the C version. To run the code go to the rust directory and type:
129
+
130
+
cargo run
131
+
132
+
Typical errors r=0.006589293163823231 mm, v=0.00048047055139244986 mm/s