Made many revisions. Still some to go
This commit is contained in:
@@ -132,7 +132,7 @@ function conv_T(Tm::Vector{Float64},
|
||||
si*sθ si*cθ 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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user