Built the population member gen function

This commit is contained in:
Connor
2021-09-22 22:21:00 -06:00
parent eaae54ac59
commit 80e352059e
7 changed files with 147 additions and 63 deletions

View File

@@ -22,9 +22,9 @@
phase2 = Phase(p1, p2, leg2_tof, v∞s[3], v∞s[4])
# For finding the best trajectories
earth_state = [spkssb(Thesis.ids["Earth"], launch_j2000, "J2000"); start_mass]
p1_state = [spkssb(Thesis.ids[p1], launch_j2000+leg1_tof, "J2000"); start_mass]
p2_state = [spkssb(Thesis.ids[p2], launch_j2000+leg1_tof+leg2_tof, "J2000"); start_mass]
earth_state = [spkssb(Thesis.ids["Earth"], launch_j2000, "ECLIPJ2000"); start_mass]
p1_state = [spkssb(Thesis.ids[p1], launch_j2000+leg1_tof, "ECLIPJ2000"); start_mass]
p2_state = [spkssb(Thesis.ids[p2], launch_j2000+leg1_tof+leg2_tof, "ECLIPJ2000"); start_mass]
earth = prop(zeros(100,3), earth_state, sc, μs["Sun"], 3600*24*365.)[1]
p1_path = prop(zeros(100,3), p1_state, sc, μs["Sun"], 3600*24*365*2.)[1]
p2_path = prop(zeros(100,3), p2_state, sc, μs["Sun"], 3600*24*365*8.)[1]