I THINK that the single shooter is ok. I can always improve it later

This commit is contained in:
rconnorjohnstone
2021-06-17 23:36:50 -06:00
parent 2c39c34f01
commit 966f954528
13 changed files with 170 additions and 61 deletions

View File

@@ -2,15 +2,16 @@
# First some setup
sc = Sc("test")
T = rand(3600*1.5:0.01:3600*4)
T = rand(3600*2:0.01:3600*4)
start = oe_to_xyz([ (μs["Earth"]*(T/(2π))^2)^(1/3),
0.3,
0.1,
π/4,
0.,
0.,
1. ], μs["Earth"])
ΔVs = [ [1., 1., 1.]/20 for _ in 1:40 ]
path = prop(ΔVs, start, sc, μs["Earth"], 0.9T, 40)[1]
n = 100
ΔVs = repeat([0.5, 0., 0.]', outer=(n,1))
path = prop(ΔVs, start, sc, μs["Earth"], 3T)[1]
p = plot_orbits([path])
savefig(p,"plot_test.html")
@test typeof(p) == PlotlyJS.SyncPlot