|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
7 #define UNUSED(x) (void)(x)
121 #define MAX_INVALID_PULS_TIME 300
126 #define DELAY_10_HZ (1000000 / 10)
347 #if defined(USE_PWM) || defined(USE_PPM)
709 #define RSSI_SAMPLE_COUNT 16
714 static uint8_t sampleIndex = 0;
715 static unsigned sum = 0;
717 sum += value - samples[sampleIndex];
718 samples[sampleIndex] = value;
rcProcessFrameFnPtr rcProcessFrameFn
void pt1FilterInit(pt1Filter_t *filter, float k)
static pt1Filter_t frameErrFilter
#define NON_AUX_CHANNEL_COUNT
float pt1FilterGain(float f_cut, float dT)
static uint8_t rxChannelCount
int16_t rcData[MAX_SUPPORTED_RC_CHANNEL_COUNT]
static uint32_t needRxSignalMaxDelayUs
#define GET_FRAME_ERR_LPF_FREQUENCY(period)
void setRssiDirect(uint16_t newRssi, rssiSource_e source)
uint32_t rcInvalidPulsPeriod[MAX_SUPPORTED_RC_CHANNEL_COUNT]
static bool nullProcessFrame(const rxRuntimeConfig_t *rxRuntimeConfig)
#define MAX_INVALID_PULS_TIME
#define RSSI_SAMPLE_COUNT
#define MAX_SUPPORTED_RC_CHANNEL_COUNT
rxRuntimeConfig_t rxRuntimeConfig
static uint8_t rcSampleIndex
static uint16_t nullReadRawRC(const rxRuntimeConfig_t *rxRuntimeConfig, uint8_t channel)
#define FRAME_ERR_RESAMPLE_US
static uint16_t updateRssiSamples(uint16_t value)
const rxConfig_t * rxConfig(void)
rcFrameStatusFnPtr rcFrameStatusFn
const rxSpiConfig_t * rxSpiConfig(void)
void rxInit(void)
!TODO remove this extern, only needed once for channelCount
SerialRXType serialrxProvider
float pt1FilterApply(pt1Filter_t *filter, float input)
#define featureIsEnabled(mask)
rcReadRawDataFnPtr rcReadRawFn
bool rxSpiInit(const rxSpiConfig_t *rxSpiConfig, rxRuntimeConfig_t *rxRuntimeConfig)
@ RSSI_SOURCE_FRAME_ERRORS
uint8_t serialrx_provider
@ RX_PROVIDER_PARALLEL_PWM
void setRssi(uint16_t rssiValue, rssiSource_e source)
static uint8_t nullFrameStatus(rxRuntimeConfig_t *rxRuntimeConfig)
@ FEATURE_RX_PARALLEL_PWM