From b649285a2a956289ed90dabcfa91185e7165616a Mon Sep 17 00:00:00 2001 From: Uwe Fechner Date: Sun, 27 Oct 2024 11:18:42 +0100 Subject: [PATCH] refactoring --- examples/parking_1p.jl | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/examples/parking_1p.jl b/examples/parking_1p.jl index e4663d26..76d06ec3 100644 --- a/examples/parking_1p.jl +++ b/examples/parking_1p.jl @@ -15,12 +15,9 @@ using KiteControllers, KiteViewers, KiteModels, ControlPlots, Rotations kcu::KCU = KCU(set) kps::KPS3 = KPS3(kcu) -wcs::WCSettings = WCSettings(dt = 1/set.sample_freq) -update(wcs); wcs.dt = 1/set.sample_freq -fcs::FPCSettings = FPCSettings(dt = wcs.dt) -update(fcs); fcs.dt = wcs.dt -fpps::FPPSettings = FPPSettings() -update(fpps) +wcs::WCSettings = WCSettings(true, dt = 1/set.sample_freq) +fcs::FPCSettings = FPCSettings(true, dt = wcs.dt) +fpps::FPPSettings = FPPSettings(true) u_d0 = 0.01 * set.depower_offset u_d = 0.01 * set.depower ssc::SystemStateControl = SystemStateControl(wcs, fcs, fpps; u_d0, u_d, v_wind = set.v_wind)