Skip to content

[1.1.x] Junction Deviation#10650

Merged
thinkyhead merged 2 commits intoMarlinFirmware:bugfix-1.1.xfrom
thinkyhead:bf1_junction_deviation
May 8, 2018
Merged

[1.1.x] Junction Deviation#10650
thinkyhead merged 2 commits intoMarlinFirmware:bugfix-1.1.xfrom
thinkyhead:bf1_junction_deviation

Conversation

@thinkyhead
Copy link
Member

@thinkyhead thinkyhead commented May 8, 2018

In response to #10341

Add an alternative method for jerk limiting that takes account of the angle of deviation.

Adapted from Grbl, with finishing touches incorporated from https://github.com/Squid116/Marlin/tree/bugfix-1.1.x

Concise Diff

Counterpart to #10651

Copy link
Contributor

Choose a reason for hiding this comment

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

We have already set vmax_junction to MINIMUM_PLANNER_SPEED above, we could invert the if and skip this block?

if (junction_cos_theta < 0.999999) {
   junction_cos_theta = max(junction_cos_theta, -0.999999); // Check for numerical round-off to avoid divide by zero.
   etc...

Copy link
Member Author

Choose a reason for hiding this comment

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

Patched.

Copy link
Contributor

Choose a reason for hiding this comment

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

It was on my list... 😄

@thinkyhead thinkyhead force-pushed the bf1_junction_deviation branch 3 times, most recently from 1ef1c52 to cd944ea Compare May 8, 2018 09:39
@thinkyhead thinkyhead force-pushed the bf1_junction_deviation branch from cd944ea to b3af5a1 Compare May 8, 2018 09:43
Copy link
Contributor

Choose a reason for hiding this comment

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

much neater than my attempt!

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@thinkyhead thinkyhead merged commit ae24f4f into MarlinFirmware:bugfix-1.1.x May 8, 2018
@thinkyhead thinkyhead deleted the bf1_junction_deviation branch May 8, 2018 14:25
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