mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Added "AHRS_ADC_GetOverSampling" function
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2308 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
a8bfce8418
commit
c8a1a6771c
@ -213,7 +213,7 @@ void AHRS_ADC_SetCallback(ADCCallback new_function)
|
||||
/**
|
||||
* @brief Return the address of the downsampled data buffer
|
||||
*/
|
||||
float * AHRS_ADC_GetBuffer()
|
||||
float * AHRS_ADC_GetBuffer(void)
|
||||
{
|
||||
return downsampled_buffer;
|
||||
}
|
||||
@ -221,11 +221,19 @@ float * AHRS_ADC_GetBuffer()
|
||||
/**
|
||||
* @brief Return the address of the raw data data buffer
|
||||
*/
|
||||
int16_t * AHRS_ADC_GetRawBuffer()
|
||||
int16_t * AHRS_ADC_GetRawBuffer(void)
|
||||
{
|
||||
return (int16_t *) adc_config.valid_data_buffer;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return the amount of over sampling
|
||||
*/
|
||||
uint8_t AHRS_ADC_GetOverSampling(void)
|
||||
{
|
||||
return adc_config.adc_oversample;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set the fir coefficients. Takes as many samples as the
|
||||
* current filter order plus one (normalization)
|
||||
|
@ -47,7 +47,8 @@ uint8_t AHRS_ADC_Config(int32_t adc_oversample);
|
||||
void AHRS_ADC_DMA_Handler(void);
|
||||
void AHRS_ADC_SetCallback(ADCCallback);
|
||||
void AHRS_ADC_SetFIRCoefficients(float * new_filter);
|
||||
float * AHRS_ADC_GetBuffer();
|
||||
int16_t * AHRS_ADC_GetRawBuffer();
|
||||
float * AHRS_ADC_GetBuffer(void);
|
||||
int16_t * AHRS_ADC_GetRawBuffer(void);
|
||||
uint8_t AHRS_ADC_GetOverSampling(void);
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user