fix speed

This commit is contained in:
Rémi Heredero 2023-09-07 16:55:24 +02:00
parent b7aad73c25
commit c5403fe7f9

View File

@ -269,7 +269,7 @@ void calcSpeed(int32_t rpm) {
} else {
calcSpeed = -rpm;
}
calcSpeed *= 1000;
calcSpeed *= 2000;
calcSpeed /= KART_CST.CONTROL_SPEED_FACTOR;
eKart.speed = (uint8_t) calcSpeed;
}