1
0
mirror of https://gitlab.com/lander-team/air-prop-simulation.git synced 2025-07-23 22:51:35 +00:00

code cleanup

This commit is contained in:
2021-04-22 13:08:49 -07:00
parent 81d689f4b8
commit 3a462bde38
8 changed files with 65 additions and 35 deletions

View File

@@ -1,7 +1,7 @@
using CSV
using DataFrames
using Plots
theme(:juno)
theme(:ggplot2)
air = CSV.read("AirProp.csv", DataFrame)
@@ -9,15 +9,21 @@ f10 = CSV.read("AeroTech_F10.csv", DataFrame)
f15 = CSV.read("Estes_F15.csv", DataFrame)
g8 = CSV.read("AeroTech_G8ST.csv", DataFrame)
plot(air.Time, air.Thrust, label="Air Propulsion", ribbon=(zeros(length(df.Time)), min.(15, air.Uncertainty)), fillalpha=.1, legend=:topleft)
plot(
air.Time,
air.Thrust,
label = "Air Propulsion",
ribbon = (zeros(length(df.Time)), min.(15, air.Uncertainty)),
fillalpha = 0.1,
legend = :topleft,
)
for (d, l) in [(f10, "F10"), (f15, "F15"), (g8, "G8ST")]
plot!(d[!,"Time (s)"], d[!, "Thrust (N)"], label=l)
plot!(d[!, "Time (s)"], d[!, "Thrust (N)"], label = l)
end
title!("Propulsion Comparison")
xlabel!("Time (s)")
ylabel!("Thrust (N)")
savefig("Presentation.png")
savefig("prop_compare.png")