Fix pedal balance bar is inverted (#63)
Some checks failed
Build / build (push) Failing after 5m15s
Some checks failed
Build / build (push) Failing after 5m15s
This commit is contained in:
parent
f0495768fb
commit
f26986900a
@ -227,7 +227,7 @@ class Window(
|
|||||||
powerbar.drawMode = ProgressBarDrawMode.CENTER_OUT
|
powerbar.drawMode = ProgressBarDrawMode.CENTER_OUT
|
||||||
|
|
||||||
if (streamData.powerBalanceLeft != null) {
|
if (streamData.powerBalanceLeft != null) {
|
||||||
val value = remap((powerBalanceLeft ?: 50.0).coerceIn(0.0, 100.0), 40.0, 60.0, 0.0, 100.0)
|
val value = remap((powerBalanceLeft ?: 50.0).coerceIn(0.0, 100.0), 40.0, 60.0, 100.0, 0.0)
|
||||||
|
|
||||||
val percentLeft = (powerBalanceLeft ?: 50.0).roundToInt()
|
val percentLeft = (powerBalanceLeft ?: 50.0).roundToInt()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user