🚸 Enable G92.9 with rotational axes (#26174)
- Supporting axes that can rotate forever.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user