This commit is contained in:
parent
2b2455dbb3
commit
1128f2c7dc
@ -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,
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user