1
0
Fork 0
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:
mikeller 2020-02-23 13:10:31 +13:00
parent 53318e5e4d
commit dc5671f34c
9 changed files with 71 additions and 7 deletions

View file

@ -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;
}