Got plotting working

This commit is contained in:
rconnorjohnstone
2021-05-19 22:23:54 -06:00
parent 376f18556c
commit 2c39c34f01
11 changed files with 162 additions and 35 deletions

View File

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