Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Oct 27, 2024
1 parent e23f00a commit 9afaa79
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions examples/tune_1p.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ using KiteControllers, KiteModels, BayesOpt, ControlPlots

kcu::KCU = KCU(set)
kps::KPS3 = KPS3(kcu)
wcs::WCSettings = WCSettings(); wcs.dt = 1/set.sample_freq
fcs::FPCSettings = FPCSettings(dt=wcs.dt)
fpps::FPPSettings = FPPSettings()
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)
Expand Down
6 changes: 3 additions & 3 deletions examples/tune_1p_glb.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ using KiteControllers, KiteModels, ControlPlots, BlackBoxOptim

kcu::KCU = KCU(set)
kps::KPS3 = KPS3(kcu)
wcs::WCSettings = WCSettings(); wcs.dt = 1/set.sample_freq
fcs::FPCSettings = FPCSettings(dt=wcs.dt)
fpps::FPPSettings = FPPSettings()
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)
Expand Down
2 changes: 1 addition & 1 deletion test/test_flightpathcalculator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set = deepcopy(load_settings("system.yaml"))
kcu::KCU = KCU(set)
kps4::KPS4 = KPS4(kcu)

wcs::WCSettings = WCSettings(); wcs.dt = 1/set.sample_freq
wcs::WCSettings = WCSettings(dt = 1/set.sample_freq)
fcs::FPCSettings = FPCSettings(dt=wcs.dt)
fpps::FPPSettings = FPPSettings()
u_d0 = 0.01 * set.depower_offset
Expand Down
2 changes: 1 addition & 1 deletion test/test_flightpathcontroller3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ PROJECT="system_8000.yaml"
set = deepcopy(se(PROJECT))
kcu::KCU = KCU(set)
kps4::KPS4 = KPS4(kcu)
wcs::WCSettings = WCSettings(); wcs.dt = 1/set.sample_freq
wcs::WCSettings = WCSettings(dt=0.02); wcs.dt = 1/set.sample_freq
fcs::FPCSettings = FPCSettings(dt=wcs.dt)
fpps::FPPSettings = FPPSettings()
dt::Float64 = wcs.dt
Expand Down
2 changes: 1 addition & 1 deletion test/test_forcespeedcontroller1.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ using KiteControllers, KiteUtils, ControlPlots, BenchmarkTools

set = deepcopy(load_settings("system.yaml"))

wcs = WCSettings()
wcs = WCSettings(dt=0.02)
wcs.test = true
wcs.f_low = 1500
wcs.fac = 1.0
Expand Down
2 changes: 1 addition & 1 deletion test/test_forcespeedcontroller2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ using KiteControllers, ControlPlots, BenchmarkTools

set = deepcopy(load_settings("system.yaml"))

wcs = WCSettings()
wcs = WCSettings(dt=0.02)
wcs.test = true
wcs.f_low = 350
wcs.fac = 1.0
Expand Down
6 changes: 3 additions & 3 deletions test/test_fpc_low_right.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ PROJECT="system_8000.yaml"
set = deepcopy(se(PROJECT))
kcu::KCU = KCU(set)
kps4::KPS4 = KPS4(kcu)
wcs::WCSettings = WCSettings(); wcs.dt = 1/set.sample_freq
fcs::FPCSettings = FPCSettings(dt = wcs.dt)
fpps::FPPSettings = FPPSettings()
wcs::WCSettings = WCSettings(true, dt = 1/set.sample_freq)
fcs::FPCSettings = FPCSettings(true, dt = wcs.dt)
fpps::FPPSettings = FPPSettings(true)
dt::Float64 = wcs.dt
attractor=[55.73, 56.95]
# attractor=[0, 90] # zenith
Expand Down
2 changes: 1 addition & 1 deletion test/test_lower_force1.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ACC = zeros(SAMPLES)
D_F_ERR = zeros(SAMPLES)

# create and initialize winch controller
wcs = WCSettings()
wcs = WCSettings(dt=0.02)
update(wcs)
wcs.dt = 0.05
lfc = LowerForceController(wcs)
Expand Down
2 changes: 1 addition & 1 deletion test/test_speedcontroller1.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ using Timers; tic()
using KiteControllers, ControlPlots, BenchmarkTools

set = deepcopy(load_settings("system.yaml"))
wcs = WCSettings()
wcs = WCSettings(dt=0.02)

DURATION = 10.0
SAMPLES = Int(DURATION / wcs.dt + 1)
Expand Down
2 changes: 1 addition & 1 deletion test/test_speedcontroller2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ using Timers; tic()
using KiteControllers, ControlPlots, BenchmarkTools

set = deepcopy(load_settings("system.yaml"))
wcs = WCSettings()
wcs = WCSettings(dt=0.02)

DURATION = 10.0
SAMPLES = Int(DURATION / wcs.dt + 1)
Expand Down

0 comments on commit 9afaa79

Please sign in to comment.