Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Aug 26, 2024
1 parent fa46e4c commit 20d0a08
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions examples/parking_1p.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@ end
using Timers; tic()

using KiteUtils
se().abs_tol=0.00000006
se().rel_tol=0.0000001
set = deepcopy(load_settings("system.yaml"))
set.abs_tol=0.00000006
set.rel_tol=0.0000001

using KiteControllers, KiteViewers, KiteModels, ControlPlots

kcu::KCU = KCU(se())
kcu::KCU = KCU(set)
kps::KPS3 = KPS3(kcu)
wcs::WCSettings = WCSettings(); wcs.dt = 1/se().sample_freq
fcs::FPCSettings = FPCSettings(); fcs.dt = wcs.dt
wcs::WCSettings = WCSettings(dt = 1/set.sample_freq)
fcs::FPCSettings = FPCSettings(dt = wcs.dt)
fpps::FPPSettings = FPPSettings()
ssc::SystemStateControl = SystemStateControl(wcs, fcs, fpps)
u_d0 = 0.01 * set.depower_offset
u_d = 0.01 * set.depower
ssc::SystemStateControl = SystemStateControl(wcs, fcs, fpps; u_d0, u_d)
dt::Float64 = wcs.dt

# result of tuning, factor 0.9 to increase robustness
Expand Down

0 comments on commit 20d0a08

Please sign in to comment.