Files
thesis/julia/spacecraft.jl
rconnorjohnstone 2c39c34f01 Got plotting working
2021-05-19 22:23:54 -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