Commit e9990584 authored by Julian Salt's avatar Julian Salt
Browse files

Update furuta.jl

parent 1a0f23a4
Pipeline #744 canceled with stage
......@@ -78,7 +78,8 @@ bias(p::AbstractFuruta) = p.bias
function control(p::AbstractFuruta, u::AbstractArray)
length(u) == 1 || error("Process $(typeof(p)) only accepts one control signal, tried to send u=$u.")
control(p,u[1])
a::Float64 = -1.4*u[1]
control(p,a)
end
control(p::AbstractFuruta, u::Number) = send(p.control,u)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment