-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
Heli: Add Autorotation Flare and Touch Down Phases #28420
base: master
Are you sure you want to change the base?
Conversation
…trained to _collective_land_min_pct. Needed to account for FLT_EPSILON.
|
||
// Protect against div by 0 case | ||
if (is_zero(climb_rate + k_1)) { | ||
climb_rate -= 0.05; |
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.
something I noticed in the rework/simplification. climb_rate always equals k_1 because of the way k_1 is calculated from rotor drag (CR) and hover thrust. See lines 660 and 650. It was less obvious before because the calc for CR was always called externally to this function.
This means that the denominator in the calc for "a" (line 674) is always this arbitrary -0.05 value.
This is a very WIP PR that I am opening for some discussion.
It incorporates the flare and touchdown phases.
I have tried to keep changes to other libraries as minimal as possible. I may split those changes out into a separate PR.
This PR depends on #28209, and does contain the commits from that PR.