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

@@ -47,9 +47,9 @@ function inner_loop(launch_date::DateTime,
thrust_profiles = []
for phase in phases
planet1_state = [spkssb(ids[phase.from_planet], time, "J2000"); 0.0]
planet1_state = [spkssb(ids[phase.from_planet], time, "ECLIPJ2000"); 0.0]
time += phase.time_of_flight
planet2_state = [spkssb(ids[phase.to_planet], time, "J2000"); 0.0]
planet2_state = [spkssb(ids[phase.to_planet], time, "ECLIPJ2000"); 0.0]
start = planet1_state + [0., 0., 0., phase.v∞_outgoing..., start_mass]
final = planet2_state + [0., 0., 0., phase.v∞_incoming..., start_mass]
println(start)