🚸 Enable G92.9 with rotational axes (#26174)

- Supporting axes that can rotate forever.
This commit is contained in:
DerAndere
2024-03-02 04:16:39 +01:00
committed by GitHub
parent d609bb4671
commit c8d51c2723
6 changed files with 29 additions and 14 deletions

View File

@@ -1153,10 +1153,13 @@ float get_move_distance(const xyze_pos_t &diff OPTARG(HAS_ROTATIONAL_AXES, bool
#if HAS_ROTATIONAL_AXES
if (UNEAR_ZERO(distance_sqr)) {
// Move involves only rotational axes. Calculate angular distance in accordance with LinuxCNC
is_cartesian_move = false;
// Move involves no linear axes. Calculate angular distance in accordance with LinuxCNC
distance_sqr = ROTATIONAL_AXIS_GANG(sq(diff.i), + sq(diff.j), + sq(diff.k), + sq(diff.u), + sq(diff.v), + sq(diff.w));
}
if (!UNEAR_ZERO(distance_sqr)) {
// Move involves rotational axes, not just the extruder
is_cartesian_move = false;
}
#endif
#endif