-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Do not arm above configurable threshold #13294
Do not arm above configurable threshold #13294
Conversation
Do you want to test this code? You can flash it directly from Betaflight Configurator:
WARNING: It may be unstable. Use only for testing! |
AUTOMERGE: (FAIL)
|
if it will be ever introduced - it should be configurable parameter |
I'm not approving anything without a description where it now says "No description provided". |
I have plenty of whoops running with over 50% CPU at 8k4k and no exceedingly late tasks. This PR appears to be hurried and has no supporting data. |
We should rather investigate why the issue appears even though the scheduler is not fully loaded. This just hides the issue at hand. |
Open for any solution. We need more info for further investigation. Betaflight should not allow arming when there is some condition allow disarming to have a delay as safety precaution. |
We need to investigate what actually causes the issue and why the disarm is delayed. This seems to be a bug, maybe a racing condition of two tasks. Premature PRs which limit capable CPUs is not the answer. We should first check what the issue is and then open a PR to fix it. |
I'll close this in 24 hours unless there is supporting data |
Closing now - as this should be fixed as stated before. Not sure how Please continue investigation. |
Tasks tells us whether the issue relates to CPU load or not, by showing how many tasks are running late over the interval since the lasts tasks run. If there is no significant difference in task over-runs between 8k8k and 8k4k, then it is unlikely that a CPU load/tasks over-run would be the cause. On the other hand, if some specific task is running long, it may give us a clue as to what the problem is. |
Fixes #13290 where the quad did not disarm on user command.
In general it is our responsibility that users can fly safely.
Not sure how we should approach this issue but we need to provide safety first. We should set a safe value where advanced users can override this setting. Limiting 4K loop on F7X2 might be an alternative solution.
We must ensure that disarmament works promptly at every opportunity. That is the mean reason for this proposal.
Further investigation will be required to find the root cause.
See also