Skip to content

Commit 1a8e739

Browse files
adjusts airfoil signature accordingly
1 parent 585a98e commit 1a8e739

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

lib/models/aerosurfaces.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from enum import Enum
2-
from typing import Optional, Tuple
2+
from typing import Optional, Tuple, List
33
from pydantic import BaseModel
44

55

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

2626

27+
class AngleUnit(str, Enum):
28+
RADIANS: str = "RADIANS"
29+
DEGREES: str = "DEGREES"
30+
31+
2732
class Fins(BaseModel):
2833
fins_kind: FinsKinds
2934
name: str
@@ -34,7 +39,7 @@ class Fins(BaseModel):
3439
position: float
3540
cant_angle: float
3641
radius: float
37-
airfoil: Tuple[float, float]
42+
airfoil: Tuple[List[Tuple[float, float]], AngleUnit]
3843

3944

4045
# TODO: implement airbrakes

lib/models/rocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Rocket(BaseModel):
7171
position=-1.04956,
7272
cant_angle=0,
7373
radius=0.0635,
74-
airfoil=(0.0, 0.0),
74+
airfoil=([(0.0, 0.0), (0.1, 0.1), (0.2, 0.2)], "RADIANS"),
7575
)
7676
]
7777
tail: Optional[Tail] = Tail(

0 commit comments

Comments
 (0)