Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Sep 7, 2024
1 parent cd09fe6 commit a6b2b3b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions examples/autopilot_1p.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ using Timers; tic()

using KiteControllers, KiteViewers, KiteModels

kcu::KCU = KCU(se())
set = deepcopy(load_settings("system.yaml"))

kcu::KCU = KCU(set)
kps3::KPS3 = KPS3(kcu)

wcs = WCSettings(); update(wcs); 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 a6b2b3b

Please sign in to comment.