mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 09:45:37 +03:00
Converted tabs to spaces
This commit is contained in:
parent
adfa6c4f28
commit
ea283ab98c
63 changed files with 297 additions and 297 deletions
|
@ -68,7 +68,7 @@ static int32_t applyBarometerMedianFilter(int32_t newPressureReading)
|
|||
static int currentFilterSampleIndex = 0;
|
||||
static bool medianFilterReady = false;
|
||||
int nextSampleIndex;
|
||||
|
||||
|
||||
nextSampleIndex = (currentFilterSampleIndex + 1);
|
||||
if (nextSampleIndex == PRESSURE_SAMPLES_MEDIAN) {
|
||||
nextSampleIndex = 0;
|
||||
|
@ -77,7 +77,7 @@ static int32_t applyBarometerMedianFilter(int32_t newPressureReading)
|
|||
|
||||
barometerFilterSamples[currentFilterSampleIndex] = newPressureReading;
|
||||
currentFilterSampleIndex = nextSampleIndex;
|
||||
|
||||
|
||||
if (medianFilterReady)
|
||||
return quickMedianFilter3(barometerFilterSamples);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue