fixed neg v bug

pull/73/head
alanbjohnston 5 years ago committed by GitHub
parent 02b379e53a
commit 35f0822dda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1030,9 +1030,9 @@ if (firstTime != ON)
current[map[MINUS_Z]] = ( Zi >= 0) ? 0: ((-1.0) * Zi);
voltage[map[PLUS_X]] = ( Xv >= 1) ? Xv: rnd_float(0.9, 1.1);
voltage[map[MINUS_X]] = ( Xv <= -1) ? rnd_float(0.9, 1.1): ((-1.0) * Xv);
voltage[map[PLUS_Y]] = ( Yv >= 0) ? Yv: rnd_float(0.9, 1.1);
voltage[map[MINUS_Y]] = ( Yv >= 0) ? rnd_float(0.9, 1.1): ((-1.0) * Yv);
voltage[map[MINUS_X]] = ( Xv <= -1) ? ((-1.0) * Xv): rnd_float(0.9, 1.1);
voltage[map[PLUS_Y]] = ( Yv >= 1) ? Yv: rnd_float(0.9, 1.1);
voltage[map[MINUS_Y]] = ( Yv <= -1) ? ((-1.0) * Yv): rnd_float(0.9, 1.1);
voltage[map[PLUS_Z]] = ( Zv >= 0) ? Zv: rnd_float(0.9, 1.1);
voltage[map[MINUS_Z]] = ( Zv >= 0) ? rnd_float(0.9, 1.1): ((-1.0) * Zv);

Loading…
Cancel
Save

Powered by TurnKey Linux.