mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
Merge pull request #3703 from iNavFlight/de_fix_rx_time_overflow
Fix RX timekeeping overflow
This commit is contained in:
commit
a45ddf08f6
1 changed files with 3 additions and 3 deletions
|
@ -84,13 +84,13 @@ static bool rxFlightChannelsValid = false;
|
||||||
static bool rxIsInFailsafeMode = true;
|
static bool rxIsInFailsafeMode = true;
|
||||||
|
|
||||||
static timeUs_t rxNextUpdateAtUs = 0;
|
static timeUs_t rxNextUpdateAtUs = 0;
|
||||||
static uint32_t needRxSignalBefore = 0;
|
static timeUs_t needRxSignalBefore = 0;
|
||||||
static uint32_t suspendRxSignalUntil = 0;
|
static timeUs_t suspendRxSignalUntil = 0;
|
||||||
static uint8_t skipRxSamples = 0;
|
static uint8_t skipRxSamples = 0;
|
||||||
|
|
||||||
int16_t rcRaw[MAX_SUPPORTED_RC_CHANNEL_COUNT]; // interval [1000;2000]
|
int16_t rcRaw[MAX_SUPPORTED_RC_CHANNEL_COUNT]; // interval [1000;2000]
|
||||||
int16_t rcData[MAX_SUPPORTED_RC_CHANNEL_COUNT]; // interval [1000;2000]
|
int16_t rcData[MAX_SUPPORTED_RC_CHANNEL_COUNT]; // interval [1000;2000]
|
||||||
uint32_t rcInvalidPulsPeriod[MAX_SUPPORTED_RC_CHANNEL_COUNT];
|
timeMs_t rcInvalidPulsPeriod[MAX_SUPPORTED_RC_CHANNEL_COUNT];
|
||||||
|
|
||||||
#define MAX_INVALID_PULS_TIME 300
|
#define MAX_INVALID_PULS_TIME 300
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue