Skip to content

Commit

Permalink
less constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Mar 21, 2024
1 parent 629b48c commit e789bdc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
11 changes: 5 additions & 6 deletions examples/tune_1p.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ se().abs_tol=0.0000006
se().rel_tol=0.000001

using KiteControllers, KiteModels, Plots, BayesOpt
# using Memoize

if ! @isdefined kcu; const kcu = KCU(se()); end
if ! @isdefined kps; const kps = KPS3(kcu); end
wcs = WCSettings(); wcs.dt = 1/se().sample_freq
fcs = FPCSettings(); fcs.dt = wcs.dt
fpps = FPPSettings()
const ssc = SystemStateControl(wcs, fcs, fpps)
dt = wcs.dt
wcs::WCSettings = WCSettings(); wcs.dt = 1/se().sample_freq
fcs::FPCSettings = FPCSettings(); fcs.dt = wcs.dt
fpps::FPPSettings = FPPSettings()
ssc::SystemStateControl = SystemStateControl(wcs, fcs, fpps)
dt::Float64 = wcs.dt

# the following values can be changed to match your interest
if ! @isdefined MAX_TIME; MAX_TIME=60; end
Expand Down
10 changes: 5 additions & 5 deletions examples/tune_4p.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ using KiteControllers, KiteModels, Plots, BayesOpt

if ! @isdefined kcu; const kcu = KCU(se()); end
if ! @isdefined kps; const kps = KPS4(kcu); end
wcs = WCSettings(); wcs.dt = 1/se().sample_freq
fcs = FPCSettings(); fcs.dt = wcs.dt
fpps = FPPSettings()
const ssc = SystemStateControl(wcs, fcs, fpps)
dt = wcs.dt
wcs::WCSettings = WCSettings(); wcs.dt = 1/se().sample_freq
fcs::FPCSettings = FPCSettings(); fcs.dt = wcs.dt
fpps::FPPSettings = FPPSettings()
ssc::SystemStateControl = SystemStateControl(wcs, fcs, fpps)
dt::Float64 = wcs.dt

# the following values can be changed to match your interest
if ! @isdefined MAX_TIME; MAX_TIME=60; end
Expand Down

0 comments on commit e789bdc

Please sign in to comment.