Skip to content

Commit

Permalink
use sl.AoA
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Nov 14, 2024
1 parent 0d3b31b commit 57a2fe9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/autopilot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function simulate(integrator, stopped=true)

sys_state.var_11 = app.ssc.fpp.fpca.fpc.est_chi_dot
sys_state.var_12 = app.ssc.fpp.fpca.fpc.c2
sys_state.var_13 = app.kps4.alpha_2
# sys_state.var_13 = app.kps4.alpha_2
sys_state.var_14 = norm(acc)
sys_state.var_15 = app.kps4.alpha_3b
sys_state.var_16 = app.kps4.alpha_4b
Expand Down
12 changes: 6 additions & 6 deletions examples/plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -201,21 +201,21 @@ function plot_aerodynamics(plot_lift_drag = false)
sl = log.syslog

if plot_lift_drag
display(plotx(sl.time, sl.var_08, sl.var_13, sl.CL2, sl.CD2;
ylabels=["LoD [-]", L"\alpha_2~[°]", "CL [-]", "CD [-]"],
display(plotx(sl.time, sl.var_08, rad2deg.(sl.AoA), sl.CL2, sl.CD2;
ylabels=["LoD [-]", L"AoA~[°]", "CL [-]", "CD [-]"],
fig="aerodynamics"))
display(plotxy(sl.var_13[2:end], sl.CL2[2:end];
display(plotxy(rad2deg.(sl.AoA[2:end]), sl.CL2[2:end];
xlabel="AoA [°]",
ylabel="CL [-]",
fig="CL as function of AoA"))
display(plotxy(sl.var_13[2:end], sl.CD2[2:end];
display(plotxy(rad2deg.(sl.AoA[2:end]), sl.CD2[2:end];
xlabel="AoA [°]",
ylabel="CD [-]",
fig="CD_tot as function of AoA"))

else
display(plotx(sl.time, sl.var_08, sl.var_13, sl.var_14, sl.var_15, sl.var_16;
ylabels=["LoD [-]", L"\alpha_2~[°]", L"\alpha_{3b}~[°]", L"\alpha_{4b}~[°]"],
display(plotx(sl.time, sl.var_08, rad2deg.(sl.AoA), sl.var_14, sl.var_15, sl.var_16;
ylabels=["LoD [-]", L"AoA~[°]", L"\alpha_{3b}~[°]", L"\alpha_{4b}~[°]"],
fig="aerodynamics"))
end
nothing
Expand Down

0 comments on commit 57a2fe9

Please sign in to comment.