Skip to content

Commit be48bfb

Browse files
committed
Try to fix test
1 parent abb7a3c commit be48bfb

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

test/test_winchcontroller.jl

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,7 @@ for i in 1:SAMPLES
7878
end
7979
end
8080

81-
p1=plotx(TIME, V_WIND, V_RO, V_SET_OUT;
82-
ylabels=["v_wind [m/s]", "v_reel_out [m/s]", "v_set_out [m/s]"],
83-
fig="test_winchcontroller_a")
8481

85-
p2=plotx(TIME, F_ERR*0.001, V_ERR;
86-
ylabels=["f_err [kN]","v_error [m/s]"],
87-
fig="test_winchcontroller_b")
88-
89-
p3=plotx(TIME, FORCE*0.001, STATE;
90-
ylabels=["force [kN]","state"],
91-
fig="test_winchcontroller_c")
9282
if @isdefined __TEST__
9383
dt = wcs.dt
9484
@test V_WIND[Int64(2/0.02)+1] 9.0 rtol=1e-4
@@ -111,6 +101,17 @@ if @isdefined __TEST__
111101

112102

113103
else
104+
p1=plotx(TIME, V_WIND, V_RO, V_SET_OUT;
105+
ylabels=["v_wind [m/s]", "v_reel_out [m/s]", "v_set_out [m/s]"],
106+
fig="test_winchcontroller_a")
107+
108+
p2=plotx(TIME, F_ERR*0.001, V_ERR;
109+
ylabels=["f_err [kN]","v_error [m/s]"],
110+
fig="test_winchcontroller_b")
111+
112+
p3=plotx(TIME, FORCE*0.001, STATE;
113+
ylabels=["force [kN]","state"],
114+
fig="test_winchcontroller_c")
114115
display(p1); display(p2); display(p3)
115116
end
116117
toc()

0 commit comments

Comments
 (0)