Skip to content
Snippets Groups Projects
Commit e9990584 authored by Julian Salt's avatar Julian Salt
Browse files

Update furuta.jl

parent 1a0f23a4
No related branches found
No related tags found
1 merge request!3WIP: Started furuta implementation
Pipeline #744 canceled
...@@ -78,7 +78,8 @@ bias(p::AbstractFuruta) = p.bias ...@@ -78,7 +78,8 @@ bias(p::AbstractFuruta) = p.bias
function control(p::AbstractFuruta, u::AbstractArray) function control(p::AbstractFuruta, u::AbstractArray)
length(u) == 1 || error("Process $(typeof(p)) only accepts one control signal, tried to send u=$u.") 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 end
control(p::AbstractFuruta, u::Number) = send(p.control,u) control(p::AbstractFuruta, u::Number) = send(p.control,u)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment