Skip to content

Commit ed2fe8b

Browse files
authored
Fix the rotation of aero force vector to body frame (#3)
1 parent 39e7b59 commit ed2fe8b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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)