This commit is contained in:
ShikyC 2024-01-25 16:07:54 -08:00
parent 80304ae65c
commit 0b588ea3cb

View File

@ -129,7 +129,7 @@ void loop() {
float x2 = sensitivities[p][i] * sensitivities[p][i];
float x3 = x2 * sensitivities[p][i];
float x4 = x3 * sensitivities[p][i];
float v = 1.0 + sensitivities[p][i] + 0.5 * x2 + 0.166667 * x3;
float v = power[p][i] * (1.0 + sensitivities[p][i] + 0.5 * x2 + 0.166667 * x3);
axisValues[p][i] = AXIS_RANGE * (v >= MAX_THRES ? 1 : (v / MAX_THRES));
#endif
}