Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

243 subtask 5 apply advanced filtering #278

Closed
wants to merge 210 commits into from

Conversation

rohandhiman03
Copy link
Collaborator

Describe the pull request
Implement Moving Average Filter in BarometerInternal

This commit introduces a moving average filter to the BarometerInternal class to smooth out the barometric pressure readings. It helps in reducing the impact of transient fluctuations and outliers in the sensor data, leading to more accurate altitude calculations.

Added a queue to store a fixed number of recent pressure readings.
Modified onSensorChanged method to calculate the average of the readings in the queue.
The averaged pressure value is now used for further processing instead of the raw sensor value.
This change aims to enhance the reliability of altitude measurements, especially in conditions where barometric pressure is prone to rapid changes or anomalies.

Link to the the issue
#243

License agreement
By opening this pull request, you are providing your contribution under the Apache License 2.0 (see LICENSE.md).

Note: new dependencies/libraries
Please refrain from introducing new libraries without consulting the team.

alekhya-2000 and others added 30 commits October 8, 2023 06:04
Fixed Issue#Reduce the total number of break and continue statements …
ShareUtils :Define and throw a dedicated exception instead of using a…
#46 
The ChooseActivityTypeDialogFragment.java file includes a method showDialog that has since become deprecated. This method should be removed as it is not being used anymore.
#48 
When generic exceptions such as Error, RuntimeException, Throwable, and Exception are used in method signatures, it hinders the ability to handle true, system-generated exceptions differently from application-generated errors. This results in inconsistent exception handling practices within the codebase
#48 When generic exceptions such as Error, RuntimeException, Throwable, and Exception are used in method signatures, it hinders the ability to handle true, system-generated exceptions differently from application-generated errors. This results in inconsistent exception handling practices within the codebase
Casting 3 variables to float
sehgaldeepanshu985 and others added 29 commits November 16, 2023 16:56
…ings_Group_8_C2

187 update default units in settings group 8 c2
setVoiceAnnounceTime, annotated with @VisibleForTesting.
This method allows setting the value of the voice announce
time preference. The implementation
utilizes the existing setBoolean method with the appropriate
resource key (R.string.voice_announce_time_key).
Time of day announcement feature #178
Implement Moving Average Filter in BarometerInternal
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.