Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Sep 5, 2024
1 parent 55c8b15 commit 7088dd2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/test_speedcontroller1.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ using Timers; tic()
# docs/speed_controller_test1.png
using KiteControllers, ControlPlots, BenchmarkTools

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

DURATION = 10.0
Expand All @@ -29,7 +30,7 @@ V_SET_OUT = zeros(SAMPLES)
FORCE = zeros(SAMPLES)
ACC = zeros(SAMPLES)
ACC_SET = zeros(SAMPLES)
winch = Winch(wcs)
winch = Winch(wcs, set)
pid1 = SpeedController(wcs)
set_v_set(pid1, -0.5)
set_tracking(pid1, -0.5)
Expand Down
3 changes: 2 additions & 1 deletion test/test_speedcontroller2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ using Timers; tic()
# docs/speed_controller_test2.png
using KiteControllers, ControlPlots, BenchmarkTools

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

DURATION = 10.0
Expand All @@ -30,7 +31,7 @@ V_SET_OUT = zeros(SAMPLES)
FORCE = zeros(SAMPLES)
ACC = zeros(SAMPLES)
ACC_SET = zeros(SAMPLES)
winch = Winch(wcs)
winch = Winch(wcs, set)
calc = CalcVSetIn(wcs)
pid1 = SpeedController(wcs)
set_tracking(pid1, 0)
Expand Down
2 changes: 1 addition & 1 deletion test/test_winchcontroller.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ RESET, ACTIVE, F_SET = zeros(SAMPLES), zeros(SAMPLES), zeros(SAMPLES)
STATE = zeros(Int64, SAMPLES)
# create and initialize winch controller
wc = WinchController(wcs)
winch = KiteControllers.Winch(wcs)
winch = KiteControllers.Winch(wcs, set)
f_low = wcs.f_low

for i in 1:SAMPLES
Expand Down

0 comments on commit 7088dd2

Please sign in to comment.