Made many revisions. Still some to go

This commit is contained in:
Connor
2022-02-27 23:56:22 -07:00
parent 6954f0c0a7
commit 908dd438de
27 changed files with 2181 additions and 844 deletions

View File

@@ -132,7 +132,7 @@ function conv_T(Tm::Vector{Float64},
si* si* ci ]
Tx, Ty, Tz = DCM*thrust_rθh
state = prop_one([Tx, Ty, Tz], state, craft, time/n, primary)
state = prop([Tx Ty Tz], state, craft, time/n, primary=primary)[2,:]
push!(Txs, Tx)
push!(Tys, Ty)
push!(Tzs, Tz)

View File

@@ -286,7 +286,7 @@ function plot(paths::Vector{Matrix{Real}};
traces = [ trace... ]
for i = 2:length(paths)
color = colors === nothing ? random_color() : colors[i]
trace, new_limit = gen_plot(paths[i],label=labels[i],color=color,markers=markers)
trace, new_limit = gen_plot(paths[i],label=labels[i],color=colors[i],markers=markers)
push!(traces, trace...)
limit = max(limit, new_limit)
end

View File

@@ -20,7 +20,7 @@ function prop(ΔVs::AbstractArray,
time::Real;
primary::Body=Sun)
size(ΔVs)[2] == 3 || throw(ΔVsize_Error(size(ΔVs)))
size(ΔVs)[2] == 3 || throw(ΔVsize_Error(size(ΔVs)[1]))
n = size(ΔVs)[1]
output = Array{Real,2}(undef,n+1,7)
current = copy(state)