Built the population member gen function
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user