diff --git a/src/LabProcesses.jl b/src/LabProcesses.jl index 9cfd41e35cda4745150f288d40adc19e93f49b8a..d067c042d47b745fd10e17ae3240fd2caa05975d 100644 --- a/src/LabProcesses.jl +++ b/src/LabProcesses.jl @@ -37,15 +37,17 @@ finalize(p::AbstractProcess) = error("Function not implemented for $(typeof(p struct BallAndBeam <: PhysicalProcess h::Float64 end +BallAndBeam() = BallAndBeam(0.01) struct BallAndBeamSimulator <: SimulatedProcess h::Float64 end +BallAndBeamSimulator() = BallAndBeamSimulator(0.01) const BallAndBeamType = Union{BallAndBeam, BallAndBeamSimulator} num_outputs(p::BallAndBeamType) = 2 num_inputs(p::BallAndBeamType) = 1 -outputrange(p::BallAndBeamType) = [(-10,10),(-1,1)] # Beam angle, Ball position +outputrange(p::BallAndBeamType) = [(-10,10),(-1,1)] # Beam angle, Ball position inputrange(p::BallAndBeamType) = [(-10,10)] isstable(p::BallAndBeamType) = false sampletime(p::BallAndBeamType) = p.h