Skip to content

Commit e34c75c

Browse files
committed
Fix warnings
1 parent add95df commit e34c75c

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

‎test/test_flightpathcontroller3.jl‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ function simulate(integrator)
8888
return 1
8989
end
9090

91-
function test_parking(suppress_overshoot_factor = 3.0)
92-
global LAST_RES
91+
function test_parking()
9392
clear!(kps4)
9493
KitePodModels.init_kcu!(kcu, set)
9594
integrator = KiteModels.init!(kps4, stiffness_factor=0.04)

‎test/test_fpc_low_right.jl‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# activate the test environment if needed
22
using Pkg
33
if ! ("ControlPlots" ∈ keys(Pkg.project().dependencies))
4-
using TestEnv; TestEnv.activate()
4+
Pkg.activate(@__DIR__)
55
end
66
using ControlPlots, KiteControllers, Timers; tic()
77

@@ -11,12 +11,12 @@ using ControlPlots, KiteControllers, Timers; tic()
1111
# 3. update u_d and v_reelout from logfile
1212
# test fails if we allow v_ro > 0
1313

14-
using KiteUtils
1514
using ControlPlots, KiteControllers, KiteModels, KiteViewers
15+
using KiteUtils: Settings, load_settings
1616

1717
PROJECT="system_8000.yaml"
1818

19-
set = deepcopy(se(PROJECT))
19+
set::Settings = deepcopy(load_settings(PROJECT))
2020
kcu::KCU = KCU(set)
2121
kps4::KPS4 = KPS4(kcu)
2222
wcs::WCSettings = WCSettings(true, dt = 1/set.sample_freq)
@@ -92,8 +92,7 @@ function simulate(integrator)
9292
return 1
9393
end
9494

95-
function test_parking(suppress_overshoot_factor = 3.0)
96-
global LAST_RES
95+
function test_parking()
9796
clear!(kps4)
9897
KitePodModels.init_kcu!(kcu, set)
9998
integrator = KiteModels.init!(kps4, stiffness_factor=0.04)

0 commit comments

Comments
 (0)