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

VTOL: trigger RC override only if sticks are moved in hover flight. #13062

Closed
wants to merge 1 commit into from

Conversation

sfuhrer
Copy link
Contributor

@sfuhrer sfuhrer commented Oct 1, 2019

This PR is an option to fix #13061

…e on the RC sticks during FW flight (where RC override is disabled) doens't cause a RC override during backtransition

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
@sfuhrer sfuhrer added the Hybrid VTOL 🛩️🚁 Multirotor + Fixedwing! label Oct 1, 2019
@sfuhrer sfuhrer requested a review from MaEtUgR October 1, 2019 08:08
Copy link
Contributor

@julianoes julianoes left a comment

Choose a reason for hiding this comment

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

I guess that makes sense.

@dagar
Copy link
Member

dagar commented Oct 1, 2019

This is getting really convoluted. I don't have any immediate ideas to simplify it, but maybe we should carry a fairly detailed comment so that is_fixed_wing doesn't accidentally disappear in a future refactor.

@dagar
Copy link
Member

dagar commented Oct 1, 2019

I suppose RC override could ignore the throttle channel.

@sfuhrer
Copy link
Contributor Author

sfuhrer commented Oct 1, 2019

I suppose RC override could ignore the throttle channel.

Also thought about that, I agree. Should we still bring in the changes proposed here as well?

@dagar
Copy link
Member

dagar commented Oct 1, 2019

I suppose RC override could ignore the throttle channel.

Also thought about that, I agree. Should we still bring in the changes proposed here as well?

Whichever you prefer.

So then the question is does it make sense to drop throttle from RC override consideration entirely or only in this case.

@sfuhrer
Copy link
Contributor Author

sfuhrer commented Oct 2, 2019

e question is does it make sense to drop throttle from RC override consideration entirely or only in this case.

I would vote for getting this PR in, and see if we still need to disable throttle for some cases.

@MaEtUgR
Copy link
Member

MaEtUgR commented Oct 6, 2019

I suppose RC override could ignore the throttle channel.

I assume that would not be intuitive in certain situations since e.g. in multicopter Land or RTL on the final approach people might pull up again if it's landing too fast or in the wrong location.

Copy link
Member

@MaEtUgR MaEtUgR left a comment

Choose a reason for hiding this comment

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

I don't think that's a viable fix since this function (or let's say everything after the first if statement) is clearly designed to be ran on an event-driven basis and the is_fixed_wing flag of this pr is constantly true in fixed-wing flight. As a result the function would run through completely on every loop iteration during fixed wing flight and the mode switches would constantly get reevaluated. That means the mode is directly bound to the mode switch on the RC as soon as one is present and e.g. it would not be possible anymore to fly an RTL triggered by tablet when an RC with mode switch is connected.

Please tell me if I got it wrong, I didn't do any tests.

@stale
Copy link

stale bot commented Jan 4, 2020

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

@stale stale bot added the stale label Jan 4, 2020
@MaEtUgR
Copy link
Member

MaEtUgR commented Nov 19, 2020

This got fixed in #15495

@MaEtUgR MaEtUgR closed this Nov 19, 2020
@MaEtUgR MaEtUgR deleted the pr-VTOL_RC_override branch November 19, 2020 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hybrid VTOL 🛩️🚁 Multirotor + Fixedwing! stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RC override for VTOL
4 participants