-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fixed wing craft fails to disarm after autoland mission #9916
Comments
Additional info from my side: I have looked at the log and based on sensor data and velocity values, the auto disarm requirements should have been met. I had the same happen one time out of 4 or 5 autolands on my AR pro but unfortunately my SD card was corrupted. |
I think he actually found a bug here. It seems like the WP mission overrides the Flight mode flag and blocks the automatic disarm. But as soon as the WP mission ands by the landing detection, INAV falls back into the landing mode and skips the disarm trigger. But as the mode switch is in WP still, it immediately switches back into WP mode but into Waypoint RTH as the mission with landing at the end was completed. @Scavanger can you confirm that? I tested WP missions during development but usually I cut the throttle on my radio while the mission is active to notice if it aborts or something else goes wrong. That might have triggered the normal land detection disarm instead during my tests. Not sure how the other pilots handle that. |
It switches out of WP mode when the Autoland starts. When Autoland state ends Nav will switch to whatever Nav mode is enabled, WP mode in this case, except in the case of WP mode it will fall back to RTH until the WP mode switch is reset, hence the reason it ends up in WRTH. The problem is Autoland switches Nav to idle when it detects a landing when in fact it should just maintain the current state until the landing detector has disarmed the plane. Looking at the code again, it also shouldn't be using inav/src/main/navigation/navigation.c Line 2396 in cea4397
|
I am just wondering why in some cases it disarms properly after a WP Mission autoland. I just asked my test pilots. They have seen it not disarm in early testing like half a year ago but not again. Personally I have never seen it happen during missions but one time so far after a normal RTH landing. So it seems this disarm skip only happens under special circumstances but not always. Neither during WP nor during RTH. |
I suspect it's a timing issue between Autoland calling I'm thinking now that Autoland shouldn't be checking for landing detection at all, it should leave the Landing detector to handle it instead otherwise you get these timing conflicts arising. |
After reading the autoland process, I want to add something I changed from default. Maybe this is why it is not happening for others.
|
that setting just defines what happens if you switch WP mode off and back on again. |
I tested this with the I was trying to work out why this happens given the landing detector updates at 100Hz and Nav mode changes update at Rx update rate which is nominally 50Hz ... then realised that newer RC systems update much faster. In this case it was updating at 142Hz so it's possible to switch out of Autolanding to Nav Idle and then back to WRTH before the landing detector updates. When the landing detector does update it won't do anything useful because it only looks for a possible landing during the RTH landing phase. |
@breadoven Just had a chat with Andi. He is sick right now and can't work at that but Pawel wants to finalize 7.1.1 EDIT: I would assume that he made this Land-Detection because initially this feature was meant to be based on a custom 6.1.1 where the built in landing detection was not that good yet. So this might be just a leftover code from that anyway. |
I'm OK doing a fix for this issue but in the process of testing I've found other issues that need fixing. One of them is the So a few more bugs to iron out here. @b14ckyy Can you confirm the above issues by setting up multi missions in Configurator and checking how editing/changing/deleting affects the |
This is actually intended. The
This on the other hand is a bug and I am sure its on INAV side. I requested Andi to implement that an
OK here I am not fully getting what you describle. So the second mission had no Landing parameters set in |
OK, I've fixed this issue. The second landing had no The second issue mentioned above regarding the |
Yeah lets just focus on safety related fixes. the wipe of the land data on deleting a mission is more an inconvenience. Andi can look into that later when he is fit again. Thanks for looking into it @breadoven |
Fix merged. Closing |
Current Behavior
ZOHD Drift
Craft performs mission with final waypoint as land. The plane lands successfully. After landing, the plane does not disarm, but instead switches to WRTH mode and attempts to fly with full throttle.
Steps to Reproduce
I can reproduce this by flying the same mission. I have done it 3 times and every time it has failed to disarm. I am not sure if it is reproducible in the field by others.
Expected behavior
Disarm after landing.
Suggested solution(s)
Unknown. Bump detection?
Additional context
blackbox_log-ZOHD-DRIFT-WRTH-THROTTLE-AFTER-LANDING.zip
Dump PasteBin
The text was updated successfully, but these errors were encountered: