-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Background script halves packet rates #501
Comments
This is no bug of the lua script and no expresslrs bug: ExpressLRS/ExpressLRS#2564 (comment) |
@schugabe I recommend you read the issue over on ExpressLRS (the one where you commented) in detail, to understand why there is in fact a bug and why it is related to the BF Background Lua. If you disagree, please tell me why simply running the BF Background Lua halves the packet rate, or do the described test yourself. |
The BF background script is used for setting the RTC on the FC and for rssi IF there's no other rssi source available. If other sources are available it won't do anything after the RTC has been set. If using ELRS there is already rssi sources available from the RX |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within a week. |
Yeah, but RTC sync does not need to happen during flight, right? How about only transmitting RTC when the script sees the quad connect once, and not continuously sending updates? |
@bastian2001 no it doesn't, but to block it during flight we would have to request the arming status from the FC, which is also MSP, which would also halve the packet rate due to ELRS increasing the telemtry rate for MSP frames. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within a week. |
Issue closed automatically as inactive. |
Describe your problem
When the Betaflight background script runs on the remote, only half of the RC packets are transmitted.
Reproduction
Run Background script and count the packets. Either how often a new packet arrives (time delta) or via a packet counter. I first noticed this with my own FC, but also using the blackbox I recorded on an off the shelf FC.
Hardware and software
I believe that this information is all that is necessary to reproduce the issue. However, I am referring to this issue I previously posted over at EdgeTX and this issue on ExpressLRS, that were needed to find out that the LUA script was actually the issue.
The text was updated successfully, but these errors were encountered: