Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Jul 28, 2024
1 parent 0e669f2 commit ccd947d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ end

@testset "Winch" begin
wcs = WCSettings()
set = Settings()
set = se()
@test set.winch_model == "AsyncMachine"
w = Winch(wcs, set)
v_set = 4.0
set_v_set(w, v_set)
Expand All @@ -178,6 +179,20 @@ end
@test get_acc(w) 44.94193738387908
end

# using KiteControllers, Test
function test_winch()
wcs = WCSettings()
set = se()
w = Winch(wcs, set)
v_set = 4.0
set_v_set(w, v_set)
@test w.v_set == v_set
force = 1000.0
set_force(w, force)
@test w.force == force
w
end

@testset "LowerForceController" begin
wcs = WCSettings()
lfc = LowerForceController(wcs)
Expand Down

0 comments on commit ccd947d

Please sign in to comment.