-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
RC loss behavior #12307
Comments
Take a look at the I'm guessing this failsafe is getting hit. If you look at your XYZ setpoints in your log, you'll see they abruptly stop as soon as RC is lost. If nothing is controlling the drone (no RC, no setpoints) really the only reasonable thing the drone can do is land. You should verify what I am saying by testing though, this is just a guess. |
I think the question is, what would be the expected behaviour? If the Drone is flying with 5km/h away from the Pilot would the expected behaviour be, that it should continue doing this until the Battery Failsafe kicks in? In PosCtrl Mode Landing or RTL is probably the only sensible thing to do. If you want it to stay where it is then you should configure the Param to 1. If in Mission Mode a Param Value of 0 would most probably continue the Mission. |
I had some time to do some more testing with this in simulation. My issue is with the position mode behavior.
the 3rd option doesn't sound very useful or safe, but maybe 1 or 2? |
I think this is what the design intent was, but if it is keeping its velocity then this seems like a bug, as the vehicle should never try to land while moving
This is what NAV_RCL_ACT == 1 effectively accomplishes. Position mode is a manual mode, so it does not make sense for the vehicle to issue itself setpoints. You should just use NAV_RCL_ACT == 1 and then when you want to start sending control setpoints again issue a mode change back to position mode. |
So I tried to reproduce this. I've set the params as follows:
Now let's see what happens with failsafe action disable:
|
@MaEtUgR it's correct what @dakejahl wrote above. We end up in the flight task failsafe here: But actually we should just stay at the last position control position. Do you understand what's going on here? FYI: @bresch |
@julianoes Sorry, I've seen it too late. Yes, I agree with
The problem is in my opinion the following: Now if you set the configuration to not react at all and you have RC loss in position mode and commander doesn't do anything and the vehicle stays in position mode and runs the flight task executing it I consider it unhandled and unsafe because the setpoint generation relies on RC data and it's not available anymore. The outcome is therefore undefined. That's also why the flight task reports an error and the position controller executes last resort. Bottom line TL;DR according to my opinion there must be a reaction to RC loss during manual flight. And I agree that immediate descend speed is not the best solution. Let me check #13125 |
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.
I made a suggestion in #13130 . Could you check if it fixes the issue for you? |
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.
Might not have been fixing all the problems that were stated in this issue, therefor reopening. |
I think we can close this issue and then revisit all the failsafes scenarious when I get to working on that in general. |
Describe the bug
Drone lost communication and then descended to ground.
To Reproduce
Steps to reproduce the behavior:
Fly drone in Position mode and lose communication with it. I don't know how to reproduce this consistently.
Expected behavior
I would expect the drone to continue to do what it was doing before because NAV_RCL_ACT was set to 0.
Log Files and Screenshots
https://review.px4.io/plot_app?log=d97a8a6f-94a6-42fa-abf0-0dff97ba8102
Drone:
Additional context
PX4 1.9.0
The text was updated successfully, but these errors were encountered: