-
Notifications
You must be signed in to change notification settings - Fork 17.2k
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
ArduPlane:Add safety limit on tailsitter VTOL transition throttle #15794
Conversation
I think this is a fair change, its quite the odd vehicle that would cruise a less throttle than hover, but I guess such a vehicle could exist, or the hover throttle could be wrong as pointed out. |
c91bb25
to
a06014e
Compare
Co-authored-by: Peter Hall <33176108+IamPete1@users.noreply.github.com>
a06014e
to
eacd94c
Compare
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.
Look good to me, should not make any difference on most vehicles.
Of course were actually forgetting expo in the existing code, we should probably get the expo compensated throttle from motors. That would cause hover throttle to be lower than the value that is actually sent to the motors in hover. But in the transition were using that to output directly to the motors.
That is a existing issue tho
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.
LGTM
I suspect #15811 will greatly reduce the need for this, but it wouldn't do any harm to have both I guess. |
This prevents a stall and crash if you transition from FW to VTOL in a tailsitter if the hover throttle is too low, either due to initial setup being wrong, battery compensation not being setup or improper, or proper hover throttle not being learned yet .
Instead of using only hover throttle as it pulls up into VTOL stance, it will use TRIM_THROTTLE if it is larger (not the usual case). This would help assure the plane keeps "flying" thru the transition to VTOL stance if hover throttle is wrong (too low). (ask me how I know...)
Tested in SITL