mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Added protocol level RX frame rate measurement for FrSky FPort.
This commit is contained in:
parent
53318e5e4d
commit
dc5671f34c
9 changed files with 71 additions and 7 deletions
|
@ -742,6 +742,12 @@ bool processRx(timeUs_t currentTimeUs)
|
|||
static bool sharedPortTelemetryEnabled = false;
|
||||
#endif
|
||||
|
||||
timeDelta_t frameAgeUs;
|
||||
timeDelta_t frameDeltaUs = rxGetFrameDelta(&frameAgeUs);
|
||||
|
||||
DEBUG_SET(DEBUG_RX_TIMING, 0, MIN(frameDeltaUs / 10, INT16_MAX));
|
||||
DEBUG_SET(DEBUG_RX_TIMING, 1, MIN(frameAgeUs / 10, INT16_MAX));
|
||||
|
||||
if (!calculateRxChannelsAndUpdateFailsafe(currentTimeUs)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue