Skip to content

Apply minimum displacement checks consistently between canon and TP.#551

Merged
andypugh merged 1 commit intoLinuxCNC:2.7from
robEllenberg:bug-550-tp-canon-displacement-checks
Apr 28, 2019
Merged

Apply minimum displacement checks consistently between canon and TP.#551
andypugh merged 1 commit intoLinuxCNC:2.7from
robEllenberg:bug-550-tp-canon-displacement-checks

Conversation

@robEllenberg
Copy link
Collaborator

  1. Change the minimum displacement calculation in PmCartLineInit to use
    infinity-norm (i.e. max component) rather than the vector magnitude.
    This is consistent with how Canon checks for minimum displacement
  2. Apply the minimum displacement checks in canon with a threshold based
    on user units, so that the cutoffs are the same for both the TP and
    canon.

To be clear, this is an ugly way to fix the issue. The TP has to repeat
the work that canon does, and do so the exact same way to avoid weird
edge cases. The long-term fix needs to be more robust, perhaps with an
API change to enforce canon's choice of linear / angular or pure-angular
move.

fixes LinuxCNC#550

1) Change the minimum displacement calculation in PmCartLineInit to use
infinity-norm (i.e. max component) rather than the vector magnitude.
This is consistent with how Canon checks for minimum displacement
2) Apply the minimum displacement checks in canon with a threshold based
on user units, so that the cutoffs are the same for both the TP and
canon.

To be clear, this is an ugly way to fix the issue. The TP has to repeat
the work that canon does, and do so the exact same way to avoid weird
edge cases. The long-term fix needs to be more robust, perhaps with an
API change to enforce canon's choice of linear / angular or pure-angular
move.
@robEllenberg robEllenberg force-pushed the bug-550-tp-canon-displacement-checks branch from 599145a to 10c3678 Compare January 25, 2019 17:32
@andypugh andypugh merged commit b964362 into LinuxCNC:2.7 Apr 28, 2019
@robEllenberg robEllenberg deleted the bug-550-tp-canon-displacement-checks branch June 14, 2019 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants