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

ArduPlane:Add safety limit on tailsitter VTOL transition throttle #15794

Merged
merged 1 commit into from
Nov 17, 2020

Conversation

Hwurzburg
Copy link
Collaborator

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

ArduPlane/tailsitter.cpp Outdated Show resolved Hide resolved
@IamPete1
Copy link
Member

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.

Co-authored-by: Peter Hall <33176108+IamPete1@users.noreply.github.com>
Copy link
Member

@IamPete1 IamPete1 left a 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

Copy link
Contributor

@kd0aij kd0aij left a comment

Choose a reason for hiding this comment

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

LGTM

@IamPete1
Copy link
Member

I suspect #15811 will greatly reduce the need for this, but it wouldn't do any harm to have both I guess.

@tridge tridge merged commit 5e8e088 into ArduPilot:master Nov 17, 2020
@Hwurzburg Hwurzburg deleted the tailsit_transition branch November 17, 2020 00:21
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants