From a1cb420b7dbfba8feffd2a8eb6b276ffff1f4d3a Mon Sep 17 00:00:00 2001
From: Fredrik Bagge Carlson <cont-frb@ulund.org>
Date: Tue, 29 Aug 2017 09:41:48 +0200
Subject: [PATCH] Implement Parameters constructor for ETHHelicopter

---
 .../eth_helicopter.jl                          | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/interface_implementations/eth_helicopter.jl b/src/interface_implementations/eth_helicopter.jl
index f13bb0f..71bf494 100644
--- a/src/interface_implementations/eth_helicopter.jl
+++ b/src/interface_implementations/eth_helicopter.jl
@@ -7,16 +7,16 @@
 
 export ETHHelicopter, ETHHelicopterSimulator, AbstractETHHelicopter
 
-struct ETHHelicopter <: PhysicalProcess
-	h::Float64
-    bias::Float64
-    stream::LabStream
-    measure1::AnalogInput10V
-    measure2::AnalogInput10V
-    control1::AnalogOutput10V
-    control2::AnalogOutput10V
+@with_kw struct ETHHelicopter <: PhysicalProcess
+    h::Float64 = 0.05
+    bias::Float64 = 0.0
+    stream::LabStream = ComediStream()
+    measure1::AnalogInput10V = AnalogInput10V(0)
+    measure2::AnalogInput10V = AnalogInput10V(1)
+    control1::AnalogOutput10V = AnalogOutput10V(0)
+    control2::AnalogOutput10V = AnalogOutput10V(1)
 end
-ETHHelicopter() = ETHHelicopter(0.050, 0., ComediStream(), AnalogInput10V(0), AnalogInput10V(1), AnalogOutput10V(0), AnalogOutput10V(1))
+
 
 struct ETHHelicopterSimulator <: SimulatedProcess
     h::Float64
-- 
GitLab