-
Notifications
You must be signed in to change notification settings - Fork 26
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
Minor fixes in mission module #579
Conversation
…casionally be None when attempting to set its target
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #579 +/- ##
==========================================
+ Coverage 91.91% 91.92% +0.01%
==========================================
Files 100 100
Lines 6183 6169 -14
Branches 973 974 +1
==========================================
- Hits 5683 5671 -12
+ Misses 334 333 -1
+ Partials 166 165 -1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the clean-up. Seems all good to me.
Sorry, just realized |
…gments is now handled through inheritance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me thanks for cleaning this up, it will solve additional issues. I would suggest to complete the documentation of the hold segment with the new load factor feature.
@@ -434,36 +496,6 @@ def get_gamma_and_acceleration(self, flight_point: FlightPoint): | |||
|
|||
return 0.0, acceleration | |||
|
|||
def complete_flight_point(self, flight_point: FlightPoint): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for deleting this unnecessary overload, it fixed the values in brackets in the flight point at the same time. It took me while to figure it out: this overload does not apply the scalarise() method at the end.
This PR addresses 2 small problems:
Additionally, some refactoring has been done to have CL and CD computed in only one location. For this purpose, abstract classes
AbstractLiftFromWeightSegment
andAbstractLiftFromAoASegment
have been created, in the same purpose asAbstractManualThrustSegment
andAbstractRegulatedThrustSegment
.BTW, the
load_factor
attribute has been added toAbstractLiftFromWeightSegment
. It's an easy addition that allows to simulate segments with load factors different from 1.