Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: CP and Thrust Eccentricity Effects Generate Roll Moment #617

Merged
merged 7 commits into from
Jun 16, 2024

Conversation

MateusStano
Copy link
Member

@MateusStano MateusStano commented Jun 6, 2024

Pull request type

  • Code changes (bugfix, features)

Checklist

  • Tests for the changes have been added (if needed)
  • Docs have been reviewed and added / updated
  • Lint (black rocketpy/ tests/) has passed locally
  • All tests (pytest tests -m slow --runslow) have passed locally
  • CHANGELOG.md has been updated (if relevant)

Current behavior

CP eccentricities did not generate moment on the rocket's center axis (roll moment M3) and thrust eccentricity was not included in u_dot_generalized

New behavior

Roll moment is calculated properly and thrust eccentricity is included in u_dot_generalized

Breaking change

  • Yes
  • No

@MateusStano MateusStano requested a review from a team as a code owner June 6, 2024 17:20
Copy link

codecov bot commented Jun 6, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 73.60%. Comparing base (158d1ca) to head (6af67ac).
Report is 1 commits behind head on develop.

Current head 6af67ac differs from pull request most recent head 240585b

Please upload reports for the commit 240585b to get more accurate results.

Files Patch % Lines
rocketpy/simulation/flight.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #617      +/-   ##
===========================================
- Coverage    73.60%   73.60%   -0.01%     
===========================================
  Files           70       70              
  Lines        10290    10292       +2     
===========================================
+ Hits          7574     7575       +1     
- Misses        2716     2717       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@Gui-FernandesBR Gui-FernandesBR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Send like r1 and r2 are aligned to the global coordinate system (the earth) but the x and y excentricity should be aligned to the local (rocket) coordinate system.

Right now I understand you are assuming R1 is always parallel to x_excentricity, right?

Copy link
Member

@Gui-FernandesBR Gui-FernandesBR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the CHANGELOG

@MateusStano
Copy link
Member Author

Send like r1 and r2 are aligned to the global coordinate system (the earth) but the x and y excentricity should be aligned to the local (rocket) coordinate system.

Right now I understand you are assuming R1 is always parallel to x_excentricity, right?

R1, R2, and R3 are described in the rocket coordinate system from what I understand

What I did here is in accordance with what the code was doing before, I am not assuming anything different. But yes, I believe the R1 was assumed to be parallel to x

tests/unit/test_rocket.py Outdated Show resolved Hide resolved
@Gui-FernandesBR Gui-FernandesBR merged commit 84a2a16 into develop Jun 16, 2024
3 of 8 checks passed
@Gui-FernandesBR Gui-FernandesBR deleted the enh/roll-moment-from-eccentricity branch June 16, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

2 participants