RocketPy-Team / RocketPy

Next generation High-Power Rocketry 6-DOF Trajectory Simulation
https://docs.rocketpy.org/
MIT License
650 stars 159 forks source link

BUG: Problem with heading parameter definition #717

Open Inazillo opened 1 month ago

Inazillo commented 1 month ago

I'm trying to simulate how the cross wind affects to the trajectory, this way I want to analyze in the extreme cases if the rocket will go out of the safe zone. For that I'm defining a wind_u of 30 m/s and wind_v of 0 m/s, moreover, the heading (angle relative to the north) of 11.6°. The problem comes when I try to simulate it, as you can see on the attached figure that rocketpy is launching towards the west, instead of doing that towards the north with the defined angle. You can find a simplified code attached, so that you can review it and see if it's a bug or my error. Thank you very much in advance! Cross_wind_heading_11 6 Airfoil.CSV CD_power_off.CSV CD_power_on.CSV Wind_cross_flight.txt

Gui-FernandesBR commented 1 month ago

There's something wrong with the wind_u definition, for sure. But it seems that this behavior has been present since v1.0 or even more.

So I have to check it deeper to properly understand it. Let me see what I can get during the next weeks.

Gui-FernandesBR commented 4 days ago

Doing some investigations today. I think the problem might be related to the Flight.u_dotxxx methods @MateusStano