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

Update ballandbeam.jl

parent 97f22980
Branches
Tags v0.1.0
No related merge requests found
Pipeline #670 failed
...@@ -99,8 +99,8 @@ function control(p::AbstractBeamOrBallAndBeam, u::AbstractArray) ...@@ -99,8 +99,8 @@ function control(p::AbstractBeamOrBallAndBeam, u::AbstractArray)
send(p.control,u[1]) send(p.control,u[1])
end end
control(p::AbstractBeamOrBallAndBeam, u::Number) = send(p.control,u) control(p::AbstractBeamOrBallAndBeam, u::Number) = send(p.control,u)
control(p::BeamSimulator, u) = p.s(u) control(p::BeamSimulator, u::Number) = p.s(u)
control(p::BallAndBeamSimulator, u) = error("Not yet implemented") control(p::BallAndBeamSimulator, u::Number) = error("Not yet implemented")
measure(p::Beam) = read(p.measure) measure(p::Beam) = read(p.measure)
measure(p::BallAndBeam) = [read(p.measure1), read(p.measure2)] measure(p::BallAndBeam) = [read(p.measure1), read(p.measure2)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment