Skip to content

Commit

Permalink
Recompute cordinates of motors if machine geometry changes
Browse files Browse the repository at this point in the history
Recompute the xy cordinates of the motors when the machine's geometry is updated.

Fixes an issue with triangular kinematics
  • Loading branch information
BarbourSmith committed Aug 24, 2017
1 parent f1f9f7e commit dd5668f
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 dd5668f

Please sign in to comment.