WIP: Started furuta implementation
Compare changes
+ 39
− 15
@@ -18,12 +18,12 @@ export Furuta, FurutaSimulator, AbstractFuruta
@@ -18,12 +18,12 @@ export Furuta, FurutaSimulator, AbstractFuruta
@@ -36,12 +36,12 @@ end
@@ -36,12 +36,12 @@ end
@@ -50,8 +50,8 @@ function Furuta(;
@@ -50,8 +50,8 @@ function Furuta(;
# p = Furuta(Float64(h),Float64(bias),Float64(phi),Float64(phi_dot),Float64(theta),Float64(theta_dot),Float64(theta_precise),Float64(theta_dot_precise),stream,measure_phi,measure_phi_dot,measure_theta,measure_theta_dot,measure_theta_precise,measure_theta_dot_precise,control)
p = Furuta(Float64(h),Float64(bias),stream,measure_phi,measure_phi_dot,measure_theta,measure_theta_dot,measure_theta_precise,measure_theta_dot_precise,control)
init_devices!(p.stream, p.measure_phi, p.measure_phi_dot, p.measure_theta, p.measure_theta_dot, p.measure_theta_precise, p.measure_theta_dot_precise, p.control)
@@ -78,7 +78,8 @@ bias(p::AbstractFuruta) = p.bias
@@ -78,7 +78,8 @@ bias(p::AbstractFuruta) = p.bias
length(u) == 1 || error("Process $(typeof(p)) only accepts one control signal, tried to send u=$u.")
@@ -86,11 +87,34 @@ control(p::FurutaSimulator, u::Number) = p.s(u)
@@ -86,11 +87,34 @@ control(p::FurutaSimulator, u::Number) = p.s(u)