diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-06-14 02:08:51 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-06-14 02:08:51 +0300 |
commit | 7caf1bb15bc36392761b5c54735d910f5548d765 (patch) | |
tree | b3635fa1a0fb8c4a130e296ca4cdfb95b95ba756 /src/Movement/Kinematics/FiveBarScaraKinematics.cpp | |
parent | 35923f84e6b3d387c1608fa591fa6aa3e218175f (diff) |
Changes for 5LC
Diffstat (limited to 'src/Movement/Kinematics/FiveBarScaraKinematics.cpp')
-rw-r--r-- | src/Movement/Kinematics/FiveBarScaraKinematics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Movement/Kinematics/FiveBarScaraKinematics.cpp b/src/Movement/Kinematics/FiveBarScaraKinematics.cpp index cde14a5a..bc184420 100644 --- a/src/Movement/Kinematics/FiveBarScaraKinematics.cpp +++ b/src/Movement/Kinematics/FiveBarScaraKinematics.cpp @@ -179,7 +179,7 @@ float FiveBarScaraKinematics::getAbsoluteAngle(float xOrig, float yOrig, float x { const float length = sqrtf(fsquare(xOrig - xDest) + fsquare(yOrig - yDest)); const float y = fabs(yOrig - yDest); - float angle = asin(y / length) * 180.0f / M_PI; + float angle = asinf(y / length) * 180.0f / Pi; const int quad = getQuadrant(xDest - xOrig, yDest - yOrig); |