Skip to content

Commit

Permalink
fix(X43): updated to add wing back, fins still not working correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
kieran-mackle committed Jul 20, 2024
1 parent 1039f1f commit 7ec2fb7
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/hypervehicle/hangar/x43.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import numpy as np
from copy import deepcopy
from hypervehicle import Vehicle
from hypervehicle.generator import Generator
from hypervehicle.components import Wing, Fin, common
from hypervehicle.components import Wing, common, Fin
from hypervehicle.geometry import Vector3, Bezier, Line, Polyline


Expand Down Expand Up @@ -280,11 +281,6 @@ def leading_edge_width_function2(r):
p2 = Vector3(x=0.5 * fin_p3x, y=fin_offset + self.fin_height)
p3 = Vector3(x=fin_p3x, y=fin_offset)

# Construct p1p3 path
p1p2 = Line(p1, p2)
p2p3 = Line(p2, p3)
p1p3 = Polyline(segments=[p1p2, p2p3])

def fin_offset_function(x, y, z):
return Vector3(x=0, y=y_shift, z=0)

Expand All @@ -294,7 +290,6 @@ def fin_offset_function(x, y, z):

# Rudder angle (fin flap)
rudder_angle = np.deg2rad(self.rudder_angle)

fin1 = Fin(
p0=p0,
p1=p1,
Expand Down Expand Up @@ -347,7 +342,8 @@ def fin_offset_function2(x, y, z):

# Add all components
x43.add_component(body, reflection_axis="y", name="body")
x43.add_component(wing, reflection_axis="y", name="wing")
x43.add_component(deepcopy(wing), name="wing1")
x43.add_component(wing, reflection_axis="y", name="wing2")
x43.add_component(inlet, reflection_axis="y", name="inlet")
x43.add_component(fin1, name="fin1")
x43.add_component(fin2, name="fin2")
Expand Down

0 comments on commit 7ec2fb7

Please sign in to comment.