Merge branch 'mdev' into pr/124

This commit is contained in:
Frank
2024-04-04 23:53:34 +02:00
11 changed files with 393 additions and 24 deletions

View File

@@ -96,10 +96,10 @@ class ANIMartRIXMod:public ANIMartRIX {
}
float speedFactor = 1.0;
if (SEGMENT.speed < 128) {
speedFactor = (float) map(SEGMENT.speed, 0, 127, 1, 10) / 10.0f;
speedFactor = (float) map(SEGMENT.speed, 0, 127, 1, 100) / 100.0f;
}
else{
speedFactor = map(SEGMENT.speed, 128, 255, 10, 100) / 10;
speedFactor = (float) map(SEGMENT.speed, 128, 255, 10, 100) / 10.0f;
}
setSpeedFactor(speedFactor);
}