Port right motor adjustment to linux version

This adapts KrossX' commit c37c5c42e4 so
that we can use it in the linux version, too.
This commit is contained in:
Jan Holthuis 2016-09-13 13:46:05 +02:00
parent 6b1a02e971
commit fdc3de7870
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ void UpdateVibration(u32 port, u32 value)
double pow = (POW_POS + POW_NEG) / 7.0; double pow = (POW_POS + POW_NEG) / 7.0;
double pow_l = pow * (0x3B - FREQ) / 17.0; double pow_l = pow * (0x3B - FREQ) / 17.0;
double pow_r = pow * (FREQ / (double)freq_l); double pow_r = pow * (FREQ - 0x07) / 15.0;
if (pow_l > 1.0) pow_l = 1.0; if (pow_l > 1.0) pow_l = 1.0;
if (pow_r > 1.0) pow_r = 1.0; if (pow_r > 1.0) pow_r = 1.0;