Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Oct 27, 2024
1 parent 7e78dcb commit 5744eb0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ end
end

@testset "WinchController" begin
wcs = WCSettings()
wcs = WCSettings(dt=0.02)
cvi = CalcVSetIn(wcs)
force = wcs.f_low
v_ro = calc_vro(wcs, force)
Expand Down Expand Up @@ -133,7 +133,7 @@ end
end

@testset "SpeedController" begin
wcs = WCSettings()
wcs = WCSettings(dt=0.02)
sc = SpeedController(wcs)
@test sc.wcs.dt == 0.02
set_tracking(sc, 1.0)
Expand Down Expand Up @@ -164,7 +164,7 @@ end
end

@testset "Winch" begin
wcs = WCSettings()
wcs = WCSettings(dt=0.02)
set = se()
@test set.winch_model == "AsyncMachine"
w = Winch(wcs, set)
Expand All @@ -181,7 +181,7 @@ end

# using KiteControllers, Test
function test_winch()
wcs = WCSettings()
wcs = WCSettings(dt=0.02)
set = se()
w = Winch(wcs, set)
v_set = 4.0
Expand All @@ -194,7 +194,7 @@ function test_winch()
end

@testset "LowerForceController" begin
wcs = WCSettings()
wcs = WCSettings(dt=0.02)
lfc = LowerForceController(wcs)
@test lfc.wcs.dt == 0.02
KiteControllers._set(lfc)
Expand Down Expand Up @@ -229,7 +229,7 @@ end
end

@testset "UpperForceController" begin
wcs = WCSettings()
wcs = WCSettings(dt=0.02)
ufc = UpperForceController(wcs)
@test ufc.wcs.dt == 0.02
KiteControllers._set(ufc)
Expand Down Expand Up @@ -264,7 +264,7 @@ end
end

@testset "WinchController" begin
wcs = WCSettings()
wcs = WCSettings(dt=0.02)
wc = WinchController(wcs)
v_act = 1.0
force = 500.0
Expand Down Expand Up @@ -416,7 +416,7 @@ end
end

@testset "SystemStateControl" begin
wcs = WCSettings()
wcs = WCSettings(dt=0.05)
fcs = FPCSettings(dt=0.05)
fpps = FPPSettings()
ssc = SystemStateControl(wcs, fcs, fpps; u_d0=0.01 * se().depower_offset, u_d=0.01 * se().depower, v_wind = se().v_wind)
Expand Down

0 comments on commit 5744eb0

Please sign in to comment.