Skip to content

Commit

Permalink
Merge pull request #331 from blurfl/recompute-halfWidth-and-halfHeight
Browse files Browse the repository at this point in the history
Recompute half width and half height
  • Loading branch information
BarbourSmith authored Nov 22, 2017
2 parents 059cf9a + d948dd6 commit 571d2a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cnc_ctrl_v1/Kinematics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ void Kinematics::recomputeGeometry(){
Theta = atan(2*s/l);
Psi1 = Theta - Phi;
Psi2 = Theta + Phi;


halfWidth = machineWidth / 2.0;
halfHeight = machineHeight / 2.0;
_xCordOfMotor = D/2;
_yCordOfMotor = halfHeight + motorOffsetY;

Expand Down

0 comments on commit 571d2a9

Please sign in to comment.