A lot of progress on the propagator

This commit is contained in:
rconnorjohnstone
2021-05-19 17:36:47 -06:00
parent 2460b9734b
commit 376f18556c
7 changed files with 126 additions and 3 deletions

17
julia/spacecraft.jl Normal file
View File

@@ -0,0 +1,17 @@
struct sc
mass::Float64
mass_flow_rate::Float64
max_thrust::Float64
num_thrusters::Int
duty_cycle::Float64
end
function sc(name::String)
if name == "test"
return sc(1000., 0.01, 0.1, 2, 1.)
elseif name == "no_thrust"
return sc(1000., 0.01, 0., 0, 0.)
else
throw(ErrorException("Bad sc name"))
end
end