Skip to content
Snippets Groups Projects
Commit 79b6fe6c authored by Mattias Fält's avatar Mattias Fält
Browse files

Merge branch 'bugfix-ballandbeam' into 'master'

Bugfix ballandbeam.jl

See merge request !1
parents 66cd76ae 10190eac
No related branches found
No related tags found
No related merge requests found
......@@ -94,8 +94,11 @@ bias(p::AbstractBeamOrBallAndBeam) = p.bias
bias(p::BeamSimulator) = 0
bias(p::BallAndBeamSimulator) = 0
control(p::AbstractBeamOrBallAndBeam, u) = send(p.control,u)
function control(p::AbstractBeamOrBallAndBeam, u::AbstractArray)
length(u) == 1 || error("Process $(typeof(p)) only accepts one control signal, tried to send u=$u.")
send(p.control,u[1])
end
control(p::AbstractBeamOrBallAndBeam, u::Number) = send(p.control,u)
control(p::BeamSimulator, u) = p.s(u)
control(p::BallAndBeamSimulator, u) = error("Not yet implemented")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment