Re-packaged

This commit is contained in:
Connor
2021-08-25 15:33:44 -06:00
parent e25d6ff9f4
commit fe627515dc
20 changed files with 584 additions and 137 deletions

19
julia/src/spacecraft.jl Normal file
View File

@@ -0,0 +1,19 @@
export Sc
struct Sc{T <: Real}
mass::T
mass_flow_rate::Float64
max_thrust::Float64
num_thrusters::Int
duty_cycle::Float64
end
function Sc(name::String)
if name == "test"
return Sc(10000., 0.01, 0.05, 2, 1.)
elseif name == "no_thrust"
return Sc(10000., 0.01, 0., 0, 0.)
else
throw(ErrorException("Bad sc name"))
end
end