Skip to content

Commit

Permalink
adjusts airfoil signature accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielBarberini committed Oct 2, 2024
1 parent 585a98e commit 1a8e739
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions lib/models/aerosurfaces.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from enum import Enum
from typing import Optional, Tuple
from typing import Optional, Tuple, List
from pydantic import BaseModel


Expand All @@ -24,6 +24,11 @@ class FinsKinds(str, Enum):
ELLIPTICAL: str = "ELLIPTICAL"


class AngleUnit(str, Enum):
RADIANS: str = "RADIANS"
DEGREES: str = "DEGREES"


class Fins(BaseModel):
fins_kind: FinsKinds
name: str
Expand All @@ -34,7 +39,7 @@ class Fins(BaseModel):
position: float
cant_angle: float
radius: float
airfoil: Tuple[float, float]
airfoil: Tuple[List[Tuple[float, float]], AngleUnit]


# TODO: implement airbrakes
Expand Down
2 changes: 1 addition & 1 deletion lib/models/rocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Rocket(BaseModel):
position=-1.04956,
cant_angle=0,
radius=0.0635,
airfoil=(0.0, 0.0),
airfoil=([(0.0, 0.0), (0.1, 0.1), (0.2, 0.2)], "RADIANS"),
)
]
tail: Optional[Tail] = Tail(
Expand Down

0 comments on commit 1a8e739

Please sign in to comment.