Ok, now open loop is working, sc mass changed to state, and other updates
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
export Sc
|
||||
struct Sc{T <: Real}
|
||||
mass::T
|
||||
mutable struct Sc
|
||||
dry_mass::Float64
|
||||
mass_flow_rate::Float64
|
||||
max_thrust::Float64
|
||||
num_thrusters::Int
|
||||
@@ -8,11 +8,17 @@ struct Sc{T <: Real}
|
||||
end
|
||||
|
||||
function Sc(name::String)
|
||||
# This has extra thrusters to make plots more visible (and most don't use fuel)
|
||||
if name == "test"
|
||||
return Sc(10000., 0.01, 0.05, 2, 1.)
|
||||
return Sc(9000., 0.00025/(2000*0.00981), 0.00025, 50, 0.9)
|
||||
# This is the normal one
|
||||
elseif name == "bepi"
|
||||
return Sc(9000., 2*0.00025/(2000*0.00981), 0.00025, 2, 0.9)
|
||||
elseif name == "no_thrust"
|
||||
return Sc(10000., 0.01, 0., 0, 0.)
|
||||
return Sc(9000., 0.01, 0., 0, 0.)
|
||||
else
|
||||
throw(ErrorException("Bad sc name"))
|
||||
end
|
||||
end
|
||||
|
||||
Base.copy(s::Sc) = Sc(s.dry_mass, s.mass_flow_rate, s.max_thrust, s.num_thrusters, s.duty_cycle)
|
||||
|
||||
Reference in New Issue
Block a user