Files
thesis/julia/spacecraft.jl
2021-05-19 17:36:47 -06:00

18 lines
332 B
Julia

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