Skip to content

Sensor: Add filtering to barometric pressure/altitude readings #99

Description

@ETSells

Requester: @ETSells

(Non-developer requests only): Is your feature request related to a problem? Please describe.
Barometric data fluctuates with huge spikes in flight, which makes our barometric altitude readings unreliable.

Describe the solution you'd like
We should find some way to smooth out these fluctuations. Per @Aaryan-Anand, we could consider some kind of moving average for now as it'd be fairly simple to implement. An exponential moving average, in particular, would be very simple.

Consider one in the form EMAt = BARO_EMA_ALPHA * baro_prest + (1 - BARO_EMA_ALPHA) * EMAt-1

Image

Describe alternatives you've considered
N/A

Additional context
N/A

Points of Contact
Primary POC: @NArmistead
Solution pitched by @Aaryan-Anand
Sensor SME: @ETSells

Metadata

Metadata

Labels

enhancementNew feature or requestpostponedNot for current release

Projects

Status
In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions