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)