Ok, now open loop is working, sc mass changed to state, and other updates
This commit is contained in:
@@ -7,15 +7,16 @@
|
||||
# First some setup
|
||||
sc = Sc("test")
|
||||
T = rand(3600*2:0.01:3600*4)
|
||||
start = oe_to_xyz([ (μs["Earth"]*(T/(2π))^2)^(1/3),
|
||||
0.1,
|
||||
π/4,
|
||||
0.,
|
||||
0.,
|
||||
1. ], μs["Earth"])
|
||||
n = 100
|
||||
ΔVs = repeat([0.5, 0., 0.]', outer=(n,1))
|
||||
path = prop(ΔVs, start, sc, μs["Earth"], 3T)[1]
|
||||
start = [oe_to_xyz([ (μs["Earth"]*(T/(2π))^2)^(1/3),
|
||||
0.1,
|
||||
π/4,
|
||||
0.,
|
||||
0.,
|
||||
1. ], μs["Earth"]); 10_000.]
|
||||
revs = 30
|
||||
n = revs*100
|
||||
ΔVs = repeat([0.9, 0., 0.]', outer=(n,1))
|
||||
path = prop(ΔVs, start, copy(sc), μs["Earth"], revs*T)[1]
|
||||
p = plot_orbits([path])
|
||||
savefig(p,"../plots/plot_test.html")
|
||||
@test typeof(p) == PlotlyJS.SyncPlot
|
||||
|
||||
Reference in New Issue
Block a user