Repository navigation
Reduce frequency of "Telemetry Lost" callout - #3550
Conversation
mha1
left a comment
There was a problem hiding this comment.
I have flown it a few times. No adverse effects.
pkendall64
left a comment
There was a problem hiding this comment.
Looks good my end too.
No adverse effects I can see.
|
Sorry to be late to the party, but does this affect dynamic power? Usually you want the transmit power to raise without delay if there is a loss of telemetry. It takes less than 1 second for the plane to hit the ground, and with 1/16 telemetry rate at 100Hz, your signal could degrade and be lost at the current power before you see 50% LQ. Also, does this affect logging of telemetry link? I think the sensitivity of lost telemetry callouts should be handled within the TX OS (EdgeTX, ETHOS), not obscured by the module. I think it's switched from being moderately annoying to lying that everything is fine. |
|
No, dummy. Read the first post, first paragraph.
Every RC protocol handles the sensitivity of its callouts indirectly. The question being how to determine this. On systems with symmetric telemetry bandwidth this is probably a lot easier, but in our system where there may be only 1 telemetry packet every 3 seconds or as frequent as 2ms, it is difficult to determine when we should stop reporting. This keeps our current internal behavior (affecting dynamic power) but just modifies how long we'll wait to tell EdgeTX. Telemetry is not used for control of the model, yet the callout is definitely associated with loss of control by the user. This change looks to improve the experience by eliminating the callout during a temporary loss of downlink data, which has no effect on model control and should not be something the user needs to know about. Telemetry sensors such as VBAT are not affected by this and their timeout and callout is still handled by EdgeTX regardless of this change. |
|
Good to hear, Capn', and thanks for the details! |
Changes transmitter linkstats reporting to add a variable grace period (0 to 3s) when reporting an internal "disconnected" state. Purpose is to reduce the frequency of the "Telemetry Lost" EdgeTX callout. This does not change internal behavior, only the external reporting is affected.
"I'd much rather be happy than right any day" -- Slartibartfast
Hitchhiker's Guide to the Galaxy
Details
In 4.0, #3367 modified the behavior of reporting when our internal state goes from "connected" to "disconnected" to where it is immediately reported, instead of lazily letting EdgeTX timeout. Turns out, users don't like knowing this and this has caused a perceived degradation in link quality due to knowing how often we're in the disconnected state.
Disconnected reporting behavior
What does 'disconnected' mean?
The internal ExpressLRS state and behavior is determined by the presence of telemetry. Disconnected state affects dynamic power, sync packet interval, etc but not the sending of RC channel data which always continue regardless of connected state. ExpressLRS internally goes to disconnected after missing 5 telemetry packets back to back, with a minimum duration of 512ms. This can happen quite frequently in a many-transmitter environment due to interference.
Grace period duration
Up for discussion! The grace period is linearly scaled depending on the last LQ received from the model. At 50% LQ or below there is no grace period, scaling up to 3 seconds at 100% LQ. I feel like 2 or 3 seconds is around where we want to be here, I erred on the side of "this callout isn't all that useful".
Refactor
I took the time to refactor the
uint8_t []used for sending linkstats to use aCRSF_MK_FRAME_T(crsfLinkStatistics_t)and then use common functions to generate the CRC.