Skip to content

Commit 4f25f81

Browse files
committed
Fix the rotation of aero force vector to body frame
1 parent 39e7b59 commit 4f25f81

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rocketpy/rocket/aero_surface/generic_surface.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,14 +292,14 @@ def compute_forces_and_moments(
292292
rotation_matrix = Matrix(
293293
[
294294
[1, 0, 0],
295-
[0, math.cos(alpha), -math.sin(alpha)],
296-
[0, math.sin(alpha), math.cos(alpha)],
295+
[0, math.cos(alpha), math.sin(alpha)],
296+
[0, -math.sin(alpha), math.cos(alpha)],
297297
]
298298
) @ Matrix(
299299
[
300-
[math.cos(beta), 0, -math.sin(beta)],
300+
[math.cos(beta), 0, math.sin(beta)],
301301
[0, 1, 0],
302-
[math.sin(beta), 0, math.cos(beta)],
302+
[-math.sin(beta), 0, math.cos(beta)],
303303
]
304304
)
305305
R1, R2, R3 = rotation_matrix @ Vector([side, -lift, -drag])

0 commit comments

Comments
 (0)