-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
[wip] landdetector mc: widen acceptance threshold after landing #7772
Conversation
Looks good, i will test this soon. @dagar do you have any idea what could be causing the strange system behavior?
From previous experience the LPWORK process spiked to 35% cpu related to the land detector and exhibited the same behavior. |
@Stifael can you rebase for a new CI check? |
702fafe
to
117c2a0
Compare
@Stifael why would you remove the less strict detection on arming? |
@AndreasAntener, I assume you ask because you encountered a problem? |
The prop spin up. You even left the comment in the code:
Extreme example is our octocopter with 24in folding props. But any vehicle can be affected by this. Some of our larger VTOLs create quite some airflow under the wing while arming which moves it around quite a bit. |
@AndreasAntener, I was more interested in knowing if there was a problem with this change?
exactly means. That said, I called it WIP because I did not test it myself and because I was not sure if this change will cause issues and if it does, make the threshold increase for landing independent. Therefore, I assume you encountered a problem with your vehicles? Can you list the sequence of execution that you expect to happen with the increase in threshold right after arming? Here is the sequence how I understand it:
The threshold increase after arming only effects vertical movement here and rotation here. This has nothing to do with the thrust threshold. In addition, the threshold for movement are already quite large (for vertical movement the threshold is at 0.5m/s). Consequently, as long as the vehicle does not move during arming, there should not be any change (that is at least what I concluded from the code). So please correct me if I missed something. |
@AndreasAntener did you have a chance to test it with one of your vehicles? If yes and things worked well, I will do a pr that changes the description to finalize this pr. |
Sorry for not getting back to you earlier.. I understand the change you did for the landing case and I'm not arguing about that. I agree, vertical movement is unlikely to trigger, but the rotation is. I'm not saying we need support for drones with completely unstable landing gear. But the props during spin-up can easily disturb a large vehicle enough so that the rotation threshold is crossed. Once the props are idling properly, the vehicle comes to a rest. At least that is the assumption I'm going with here. It might be wrong. What I was getting at is that functionality was removed which has been added for a reason, and we should first prove that the reason for adding it was invalid. Which is why it should be re-added IMHO. It will actually be impossible to prove that it's not needed ;) |
Related to the issue here: #7768.
Instead of widen acceptance threshold right after arming, the threshold has been widened right after landed was detected.
@sanderux, can you please retest?