From 4e9f3f99790ceb230030873feb553b85641921b4 Mon Sep 17 00:00:00 2001 From: Kyle Corry <kylecorry31@gmail.com> Date: Sat, 25 Nov 2023 17:41:04 -0500 Subject: [PATCH] Add comment to fused altimeter --- .../trail_sense/shared/sensors/altimeter/FusedAltimeter2.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/kylecorry/trail_sense/shared/sensors/altimeter/FusedAltimeter2.kt b/app/src/main/java/com/kylecorry/trail_sense/shared/sensors/altimeter/FusedAltimeter2.kt index 035f3ea5b..f463ca9eb 100644 --- a/app/src/main/java/com/kylecorry/trail_sense/shared/sensors/altimeter/FusedAltimeter2.kt +++ b/app/src/main/java/com/kylecorry/trail_sense/shared/sensors/altimeter/FusedAltimeter2.kt @@ -154,6 +154,8 @@ class FusedAltimeter2( private const val LAST_SEA_LEVEL_PRESSURE_TIME_KEY = "cache_fused_altimeter_last_sea_level_pressure_time" private val SEA_LEVEL_EXPIRATION = Duration.ofHours(1) + + // 2% GPS, 98% barometer private const val ALPHA = 0.02f } }