Skip to content

Commit 670c09d

Browse files
committed
fix tests
1 parent 227e3dc commit 670c09d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ include("test_parking.jl")
1111
segments=load_settings("system.yaml").segments
1212
pos_kite = kps4.pos[segments+1] # well, this is the position of the pod...
1313
elevation = calc_elevation(pos_kite)
14-
@test isapprox(rad2deg(elevation), 48.24819715017064, rtol=1e-2)
14+
@test isapprox(rad2deg(elevation), 69.32731405922591, rtol=1e-2)
1515
azimuth = azimuth_east(pos_kite)
16-
@test isapprox(rad2deg(azimuth), 46.73976775250815, rtol=2e-2, atol=10)
16+
@test isapprox(rad2deg(azimuth), -0.11154443486464477, rtol=2e-2, atol=10)
1717
force = winch_force(kps4)
18-
@test isapprox(force, 940.3393233392699, rtol=2e-2)
18+
@test isapprox(force, 460.9357175124477, rtol=2e-2)
1919
end

test/test_parking.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ kps4::KPS4 = KPS4(kcu)
1313

1414
# the following values can be changed to match your interest
1515
dt = 0.05
16-
TIME = 30
16+
TIME = 20
1717
TIME_LAPSE_RATIO = 1
1818
STEPS = Int64(round(TIME/dt))
1919
STATISTIC = false
@@ -44,7 +44,7 @@ function simulate(integrator, steps)
4444
(integrator.p.iter - start) / steps
4545
end
4646

47-
integrator = KiteModels.init_sim!(kps4; stiffness_factor=0.5, prn=STATISTIC)
47+
integrator = KiteModels.init_sim!(kps4; delta=0, stiffness_factor=0.5, prn=STATISTIC)
4848

4949
av_steps = simulate(integrator, STEPS)
5050
nothing

0 commit comments

Comments
 (0)