fixed sin()

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

@ -1021,7 +1021,7 @@ if (firstTime != ON)
posXi = (int)(current[map[PLUS_X]] + 0.5) + 2048;
float time = (millis() - time_start)/1000.0;
posXi = 5.0 * SIN(1.57)*SIN(2.0 * 3.14 * time / 46.0);
posXi = 5.0 * sin(1.57) * sin(2.0 * 3.14 * time / 46.0);
print("Time: %f Xi %f \n",time, posXi);

Loading…
Cancel
Save

Powered by TurnKey Linux.