1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-30 15:52:12 +01:00

Merge branch 'steve/OP-1803_s.bus_dropped_frames' into steve/OP-1849_flexio_com_bridge

This commit is contained in:
Steve Evans 2015-05-08 07:43:16 +01:00
commit 6e6b8c8bad
3 changed files with 9 additions and 4 deletions

View File

@ -713,14 +713,19 @@ static bool updateRcvrStatus(
{
extern uint32_t pios_rcvr_group_map[];
bool activity_updated = false;
uint8_t quality;
int8_t quality;
quality = PIOS_RCVR_GetQuality(pios_rcvr_group_map[group]);
/* If no driver is detected or any other error then return */
if (quality < 0) {
return activity_updated;
}
/* Compare with previous sample */
if (quality != fsm->quality) {
fsm->quality = quality;
ReceiverStatusQualitySet(&quality);
ReceiverStatusQualitySet(&fsm->quality);
activity_updated = true;
}

View File

@ -35,7 +35,7 @@
#include "pios_dsm_priv.h"
// *** UNTESTED CODE ***
#define DSM_LINK_QUALITY
#undef DSM_LINK_QUALITY
/* Forward Declarations */
static int32_t PIOS_DSM_Get(uint32_t rcvr_id, uint8_t channel);

View File

@ -35,7 +35,7 @@
#include "pios_dsm_priv.h"
// *** UNTESTED CODE ***
#define DSM_LINK_QUALITY
#undef DSM_LINK_QUALITY
#ifndef PIOS_INCLUDE_RTC
#error PIOS_INCLUDE_RTC must be used to use DSM