Skip to content

Commit

Permalink
print height correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Sep 18, 2024
1 parent 65552ae commit 2c820d9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions examples/plot_cl_cd2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ end
using ControlPlots
plt.close("all")

set.abs_tol=0.00006
set.rel_tol=0.000001
set.abs_tol=0.000006
set.rel_tol=0.0000001
V_WIND = 10

# the following values can be changed to match your interest
Expand Down Expand Up @@ -121,10 +121,13 @@ for depower in DEPOWER
else
set.elevation = elev - 4
end
if i ==3
set.elevation -= 4
end

aoa = kps4.alpha_2
v_app = norm(kps4.v_apparent)
height = calc_height(kps4)
height = logger.z_vec[end][end-2]
CL[i] = cl
CD[i] = cd
AOA[i] = aoa
Expand Down

0 comments on commit 2c820d9

Please sign in to comment.