From 1128f2c7dc6cdeee5200ceccb69aed2d9909b229 Mon Sep 17 00:00:00 2001 From: Tim Kluge Date: Fri, 3 Oct 2025 20:37:06 +0200 Subject: [PATCH] Fix inverted compass direction --- .../de/timklge/karooheadwind/datatypes/CompassDataType.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/CompassDataType.kt b/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/CompassDataType.kt index 301f128..5033c34 100644 --- a/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/CompassDataType.kt +++ b/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/CompassDataType.kt @@ -117,7 +117,7 @@ class CompassDataType( return flow { while (true) { emit(StreamData(isVisible = true, bearing = 360f * Math.random().toFloat())) - delay(10_000) + delay(5_000) } } } @@ -163,7 +163,7 @@ class CompassDataType( ) { Image( modifier = GlanceModifier.fillMaxSize(), - provider = ImageProvider(getArrowBitmapByBearing(baseBitmap, streamData.bearing.toInt())), + provider = ImageProvider(getArrowBitmapByBearing(baseBitmap, 0-streamData.bearing.toInt())), contentDescription = "Relative wind direction indicator", contentScale = ContentScale.Fit, )