Skip to content

Commit

Permalink
Merge pull request #288 from MaslowCNC/fix-triangular-kinematics
Browse files Browse the repository at this point in the history
Recompute cordinates of motors if machine geometry changes
  • Loading branch information
BarbourSmith authored Aug 24, 2017
2 parents f1f9f7e + dd5668f commit b3eb92e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cnc_ctrl_v1/Kinematics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ void Kinematics::recomputeGeometry(){
Theta = atan(2*s/l);
Psi1 = Theta - Phi;
Psi2 = Theta + Phi;

_xCordOfMotor = D/2;
_yCordOfMotor = halfHeight + motorOffsetY;

}

Expand Down

0 comments on commit b3eb92e

Please sign in to comment.