diff --git a/julia/test/laguerre-conway.jl b/julia/test/laguerre-conway.jl new file mode 100644 index 0000000..ab641bc --- /dev/null +++ b/julia/test/laguerre-conway.jl @@ -0,0 +1,15 @@ +@testset "Laguerre-Conway" begin + for T in rand(3600*1.5:3600*4, (5)) + start = oe_to_xyz([ (μs["Earth"]*(T/(2π))^2)^(1/3), 0.1, 0.1, 0., 0., 1. ], μs["Earth"]) + orbit = start + for _ in 1:5 + i = 0. + while i < T + orbit = laguerre_conway(orbit, μs["Earth"], 1.) + i += 1 + end + @test i ≈ T + @test orbit ≈ start + end + end +end diff --git a/julia/test/test.jl b/julia/test/test.jl new file mode 100644 index 0000000..99a9856 --- /dev/null +++ b/julia/test/test.jl @@ -0,0 +1,16 @@ +using Test +using Random +using LinearAlgebra + +# Includes +include("../constants.jl") +include("../conversions.jl") +include("../sft.jl") +include("../laguerre-conway.jl") + +# Tests +@testset verbose=true "All Tests" begin + include("laguerre-conway.jl") +end + +print() diff --git a/prelim_notes/technical_plan.md b/prelim_notes/technical_plan.md index 84fb0f2..30c6308 100644 --- a/prelim_notes/technical_plan.md +++ b/prelim_notes/technical_plan.md @@ -11,7 +11,8 @@ ## Stages of Development -1. First I need to set up the inner loop. The inner loop is a Sims-Flanagan transcription single-shooting algorithm, optimized using monotonic basin-hopping. +1. First I need to set up the inner loop. The inner loop is a Sims-Flanagan transcription + single-shooting algorithm, optimized using monotonic basin-hopping. a. I've constructed single-shooting algorithms before, and the Sims-Flanagan transcription is just a really simple notation for approximating low-thrust arcs. So first I'll need to set up a very simple Sims-Flanagan single