Skip to content

Commit

Permalink
recompute halfWiodth and halfHeight
Browse files Browse the repository at this point in the history
recomputeGeometry should recompute halfWiodth and halfHeight
  • Loading branch information
blurfl committed Nov 22, 2017
1 parent 6976789 commit d948dd6
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 d948dd6

Please sign in to comment.