Skip to content
Snippets Groups Projects
Commit 74386a8a authored by Fredrik Bagge Carlson's avatar Fredrik Bagge Carlson
Browse files

Add default sample time BallAndBeam

parent dac13f1a
Branches
Tags
No related merge requests found
...@@ -37,10 +37,12 @@ finalize(p::AbstractProcess) = error("Function not implemented for $(typeof(p ...@@ -37,10 +37,12 @@ finalize(p::AbstractProcess) = error("Function not implemented for $(typeof(p
struct BallAndBeam <: PhysicalProcess struct BallAndBeam <: PhysicalProcess
h::Float64 h::Float64
end end
BallAndBeam() = BallAndBeam(0.01)
struct BallAndBeamSimulator <: SimulatedProcess struct BallAndBeamSimulator <: SimulatedProcess
h::Float64 h::Float64
end end
BallAndBeamSimulator() = BallAndBeamSimulator(0.01)
const BallAndBeamType = Union{BallAndBeam, BallAndBeamSimulator} const BallAndBeamType = Union{BallAndBeam, BallAndBeamSimulator}
num_outputs(p::BallAndBeamType) = 2 num_outputs(p::BallAndBeamType) = 2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment