Skip to content

Commit

Permalink
Add identity matrix; polish maneuver plot
Browse files Browse the repository at this point in the history
  • Loading branch information
EdoAlvarezR committed Apr 6, 2023
1 parent 4383ba8 commit 0302add
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/FLOWUnsteady.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ const default_database = joinpath(module_path, "..", "database") # Default path
const def_data_path = default_database
const examples_path = joinpath(module_path, "..", "examples") # Path to examples

# Identity matrix
const Im = Array(1.0I, 3, 3)

# ------------ HEADERS ---------------------------------------------------------
for header_name in ["vehicle", "vehicle_vlm",
Expand Down
4 changes: 2 additions & 2 deletions src/FLOWUnsteady_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function plot_maneuver(maneuver::KinematicManeuver;

# -------------------- Vehicle angle history -------------------------------
ax = axs1[3]
ax.title.set_text("Angles")
ax.title.set_text("Attitude")
as = avhcl.(ts)
amax = max([maximum([a[i] for a in as]) for i in 1:3]...)
amin = min([minimum([a[i] for a in as]) for i in 1:3]...)
Expand Down Expand Up @@ -220,7 +220,7 @@ function plot_maneuver(maneuver::KinematicManeuver;
constrained_layout=true)
axs2 = fig2.subplots(gdims[1], gdims[2])
axs2 = gdims[1]==1 && gdims[2]==1 ? [axs2] : axs2
fig2.suptitle("VEHICLE CONTROLS")
fig2.suptitle("VEHICLE CONTROL INPUTS")
end

if length(angle_syss)!=0
Expand Down

0 comments on commit 0302add

Please sign in to comment.