Fix inverted compass direction
Some checks failed
Build / build (push) Has been cancelled

This commit is contained in:
Tim Kluge 2025-10-03 20:37:06 +02:00
parent 2b2455dbb3
commit 1128f2c7dc

View File

@ -117,7 +117,7 @@ class CompassDataType(
return flow { return flow {
while (true) { while (true) {
emit(StreamData(isVisible = true, bearing = 360f * Math.random().toFloat())) emit(StreamData(isVisible = true, bearing = 360f * Math.random().toFloat()))
delay(10_000) delay(5_000)
} }
} }
} }
@ -163,7 +163,7 @@ class CompassDataType(
) { ) {
Image( Image(
modifier = GlanceModifier.fillMaxSize(), modifier = GlanceModifier.fillMaxSize(),
provider = ImageProvider(getArrowBitmapByBearing(baseBitmap, streamData.bearing.toInt())), provider = ImageProvider(getArrowBitmapByBearing(baseBitmap, 0-streamData.bearing.toInt())),
contentDescription = "Relative wind direction indicator", contentDescription = "Relative wind direction indicator",
contentScale = ContentScale.Fit, contentScale = ContentScale.Fit,
) )