Skip to content

Commit

Permalink
use acc
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Nov 15, 2024
1 parent 0bebe97 commit 1db7846
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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_14 = norm(acc)
sys_state.acc = norm(acc)
sys_state.var_15 = app.kps4.alpha_3b
sys_state.var_16 = app.kps4.alpha_4b

Expand Down
4 changes: 2 additions & 2 deletions examples/plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function plot_power()
en += sl.force[i]*sl.v_reelout[i]*app.dt
energy[i] = en
end
display(plotx(log.syslog.time, sl.force, sl.v_reelout, sl.force.*sl.v_reelout, energy./3600, sl.var_14;
display(plotx(log.syslog.time, sl.force, sl.v_reelout, sl.force.*sl.v_reelout, energy./3600, sl.acc;
ylabels=["force [N]", L"v_\mathrm{ro}~[m/s]", L"P_\mathrm{m}~[W]", "Energy [Wh]", "acc [m/s^2]"],
fig="power"))
nothing
Expand Down Expand Up @@ -214,7 +214,7 @@ function plot_aerodynamics(plot_lift_drag = false)
fig="CD_tot as function of AoA"))

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

0 comments on commit 1db7846

Please sign in to comment.