diff --git a/TVCDef.jl b/TVCDef.jl
index 2a9048a..90d6034 100644
--- a/TVCDef.jl
+++ b/TVCDef.jl
@@ -1,18 +1,19 @@
using Plots
-theme(:juno)
+theme(:dark)
begin
- plot(cosd.(0:30), label = "Vertical Thrust", legend = :topright)
- plot!(sind.(0:30), label = "Horizontal Thrust")
- vline!([10], label = "Pitch", line = (3, :dash))
- vline!([15], label = "Roll", line = (3, :dash))
+ plot(cosd.(0:30), label = "Vertical Thrust", legend = :topright, line = 3)
+ plot!(sind.(0:30), label = "Horizontal Thrust", line = 3)
+ vline!([7], label = "Max TVC Deflection", line = (3, :dash))
+ # vline!([15], label = "Roll", line = (3, :dash))
ylabel!("Percent of Thrust")
xlabel!("Thruster Deflection")
- xticks!(0:5:45, string.(0:5:45) .* "°")
- yticks!(0:0.25:1, string.(0:25:100) .* "%")
+ xvals = [0:5:45; 7]
+ xticks!(xvals, string.(xvals) .* "°")
+ yticks!(0:0.10:1, string.(0:10:100) .* "%")
title!("Thrust at TVC Deflections")
end
-savefig("TVCDef.png")
+savefig("TVCDef.svg")
diff --git a/TVCDef.svg b/TVCDef.svg
new file mode 100644
index 0000000..770dfe7
--- /dev/null
+++ b/TVCDef.svg
@@ -0,0 +1,192 @@
+
+
diff --git a/ThrustDef.jl b/ThrustDef.jl
index 7fc040f..b8a37a1 100644
--- a/ThrustDef.jl
+++ b/ThrustDef.jl
@@ -3,7 +3,7 @@ using Unitful
using UnitfulRecipes
using NumericalIntegration
-theme(:juno)
+theme(:dark)
function impulse_calc(max_deflection = 15u"°")
if max_deflection == 0
@@ -46,18 +46,18 @@ function impulse_calc(max_deflection = 15u"°")
return horizontal_impulse
end
-deflections = (0.1:0.1:20)u"°"
+deflections = (0.1:0.1:15)u"°"
impulse = impulse_calc.(deflections)
let
- plot(deflections, impulse, label = "Horizontal Impulse", legend = :topleft, line = 3)
- yticks!(0:2:15, string.(0:2:15) .* "%")
- ylabel!("Percent of Impulse")
- xticks!(0:2:20, string.(0:2:20) .* "°")
+ plot(deflections, impulse, label = "Declected Impulse", legend = :topleft, line = 3)
+ yticks!(0:2:12, string.(0:2:12) .* "%")
+ ylabel!("Percent of Vertical Impulse Lost")
+ xticks!([0:5:20; 7], string.([0:5:20; 7]) .* "°")
xlabel!("Maximum TVC Deflection")
- title!("Horizontal Impulse as a function \nof maximum TVC deflection")
- vline!([8], label = "Current Design", line = (3, :dash, :mediumpurple))
+ title!("Vertical Impulse Deflected\nGiven Max TVC Deflection")
+ vline!([7], label = "Current Design", line = (3, :dash, :mediumpurple))
end
-# savefig("ThrustDef.png")
+savefig("ThrustDef.svg")
diff --git a/ThrustDef.svg b/ThrustDef.svg
new file mode 100644
index 0000000..ad7d103
--- /dev/null
+++ b/ThrustDef.svg
@@ -0,0 +1,141 @@
+
+