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

Position Controller Failsafe Improvment #13130

Merged
merged 2 commits into from
Oct 14, 2019
Merged

Conversation

MaEtUgR
Copy link
Member

@MaEtUgR MaEtUgR commented Oct 8, 2019

Describe problem solved by the proposed pull request
Presumably fixes #12307
@julianoes @RyanHurst Can you please check if that produces the desired behavior?
In my quick SITL tests it worked fine.

Test data / coverage
SITL testing enabling disabling virtual joystick in QGC to simulate RC loss.

Describe your preferred solution
Since commander should still handle all failsafes we should only run into this case as last resort to not crash. If all failsafe actions are disabled but data is missing e.g. RC loss action disabled but flying in manual and no RC this can be tested. I'm not saying this will cover all cases but it's a step in the right direction and hopefully solves the current problem.

Additional context
#13125 is an alternative solution to #12307 but I don't consider it future proof since it just starts ignoring RC loss presuming the implementation using RC will do the right thing even without any useful data available.

See issue #12307

Since commander should still handle all failsafes we should only run
into this case as last resort to not crash.
If all failsafe actions are disabled but data is missing
e.g. RC loss action disabled but flying in manual and no RC
this can be tested.
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 think this is already better.

It doesn't cover manual/stabilized modes but at least it improves ALTCL/POSCTL.

@MaEtUgR MaEtUgR merged commit 001da78 into master Oct 14, 2019
@MaEtUgR MaEtUgR deleted the pos-control-failsafe-improvment branch October 14, 2019 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RC loss behavior
2 participants