From 9f470e06ceb651c255861866dc43e021b280905d Mon Sep 17 00:00:00 2001 From: Mike Date: Sun, 16 Feb 2025 16:48:54 -0800 Subject: [PATCH] Use kmh instead of mph for consistency --- src/location/SmartBeaconing.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/location/SmartBeaconing.scala b/src/location/SmartBeaconing.scala index 6b4e5874..cec704d1 100644 --- a/src/location/SmartBeaconing.scala +++ b/src/location/SmartBeaconing.scala @@ -78,8 +78,8 @@ class SmartBeaconing(service : AprsService, prefs : PrefsWrapper) extends Locati if (!lastLoc.hasBearing) return (t_diff/1000 >= SB_TURN_TIME) - // threshold depends on slope/speed [mph] - val threshold = SB_TURN_MIN + SB_TURN_SLOPE/(speed*2.23693629) + // threshold depends on slope/speed [kmh] + val threshold = SB_TURN_MIN + SB_TURN_SLOPE/(speed*3.6) Log.d(TAG, "smartBeaconCornerPeg: %1.0f < %1.0f %d/%d".format(turn, threshold, t_diff/1000, SB_TURN_TIME))