Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.1.x] Apply feedrate to nozzle movement for kinematic machines #9448

Merged
merged 2 commits into from
Feb 4, 2018

Conversation

tcm0116
Copy link
Contributor

@tcm0116 tcm0116 commented Feb 3, 2018

#8778 repackaged for 1.1.x.

Marlin/planner.h Outdated
@@ -372,7 +372,7 @@ class Planner {

FORCE_INLINE static void unskew(float &cx, float &cy, const float &cz) {
if (WITHIN(cx, X_MIN_POS, X_MAX_POS) && WITHIN(cy, Y_MIN_POS, Y_MAX_POS)) {
const float sx = cx + cy * xy_skew_factor + cz * xz_skew_factor,
const float sx = cx + cy * xy_skew_factor + cz * (xz_skew_factor - (xy_skew_factor * yz_skew_factor)),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This turned out not to be correct. Originally I applied the fix in 368c124 but then the author informed me it was wrong, and I double-checked to see it was true. So then f38f2ac followed two days later.

Copy link
Member

@thinkyhead thinkyhead Feb 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was just an error in the merge

@thinkyhead
Copy link
Member

thinkyhead commented Feb 4, 2018

Looks good. I've updated the translations, reversed the incorrect skew_factor change, and changed NEAR_ZERO(millimeters) to just !millimeters in _buffer_steps.

I'll be interested to see how this affects my SCARA kinematics, which has to convert the feedrate from mm/s into a new degrees/s value on every segment.

@thinkyhead thinkyhead merged commit 9c3a562 into MarlinFirmware:bugfix-1.1.x Feb 4, 2018
@tcm0116 tcm0116 deleted the 1.1.x-kinematic branch February 15, 2018 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants