mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 01:35:35 +03:00
Raise frame timeout threshold
This commit is contained in:
parent
e5af6e6e0a
commit
8d30323653
1 changed files with 2 additions and 3 deletions
|
@ -61,8 +61,8 @@
|
||||||
// At max frame rate 222Hz we should expect to see each of 3 RC frames at least every 13.5ms
|
// At max frame rate 222Hz we should expect to see each of 3 RC frames at least every 13.5ms
|
||||||
// Set the individual frame timeout high-enough to tolerate 2 on-wire frames being lost + some jitter
|
// Set the individual frame timeout high-enough to tolerate 2 on-wire frames being lost + some jitter
|
||||||
// As a recovery condition we would expect at least 3 packets arriving on time
|
// As a recovery condition we would expect at least 3 packets arriving on time
|
||||||
#define GHST_RC_FRAME_TIMEOUT_MS 45
|
#define GHST_RC_FRAME_TIMEOUT_MS 300
|
||||||
#define GHST_RC_FRAME_COUNT_THRESHOLD 4 // should correspond to ~50-60ms in the best case
|
#define GHST_RC_FRAME_COUNT_THRESHOLD 2 // should correspond to ~50-60ms in the best case
|
||||||
|
|
||||||
#define GHST_PAYLOAD_OFFSET offsetof(ghstFrameDef_t, type)
|
#define GHST_PAYLOAD_OFFSET offsetof(ghstFrameDef_t, type)
|
||||||
|
|
||||||
|
@ -75,7 +75,6 @@ STATIC_UNIT_TESTED ghstFrame_t ghstValidatedFrame; // validated frame, CRC is o
|
||||||
|
|
||||||
STATIC_UNIT_TESTED uint32_t ghstChannelData[GHST_MAX_NUM_CHANNELS];
|
STATIC_UNIT_TESTED uint32_t ghstChannelData[GHST_MAX_NUM_CHANNELS];
|
||||||
|
|
||||||
|
|
||||||
typedef struct ghstFailsafeTracker_s {
|
typedef struct ghstFailsafeTracker_s {
|
||||||
unsigned onTimePacketCounter;
|
unsigned onTimePacketCounter;
|
||||||
timeMs_t lastSeenMs;
|
timeMs_t lastSeenMs;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue