Custom G26 FR followup
This commit is contained in:
parent
b9d19291fe
commit
1bc65be70f
@ -224,9 +224,8 @@ void move_to(const float &rx, const float &ry, const float &z, const float &e_de
|
|||||||
|
|
||||||
if (z != last_z) {
|
if (z != last_z) {
|
||||||
last_z = destination.z = z;
|
last_z = destination.z = z;
|
||||||
const feedRate_t feed_value = planner.settings.max_feedrate_mm_s[Z_AXIS] * 0.5f; // Use half of the Z_AXIS max feed rate
|
const feedRate_t fr_mm_s = planner.settings.max_feedrate_mm_s[Z_AXIS] * 0.5f; // Use half of the Z_AXIS max feed rate
|
||||||
prepare_internal_move_to_destination(feed_value);
|
prepare_internal_move_to_destination(fr_mm_s);
|
||||||
destination = current_position;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If X or Y in combination with E is involved do a 'normal' move.
|
// If X or Y in combination with E is involved do a 'normal' move.
|
||||||
@ -234,12 +233,10 @@ void move_to(const float &rx, const float &ry, const float &z, const float &e_de
|
|||||||
// Otherwise retract/recover/hop.
|
// Otherwise retract/recover/hop.
|
||||||
destination = dest;
|
destination = dest;
|
||||||
destination.e += e_delta;
|
destination.e += e_delta;
|
||||||
const feedRate_t feed_value =
|
const feedRate_t fr_mm_s = has_xy_component
|
||||||
has_xy_component
|
|
||||||
? (has_e_component ? feedRate_t(G26_XY_FEEDRATE) : feedRate_t(G26_XY_FEEDRATE_TRAVEL))
|
? (has_e_component ? feedRate_t(G26_XY_FEEDRATE) : feedRate_t(G26_XY_FEEDRATE_TRAVEL))
|
||||||
: planner.settings.max_feedrate_mm_s[E_AXIS] * 0.666f;
|
: planner.settings.max_feedrate_mm_s[E_AXIS] * 0.666f;
|
||||||
prepare_internal_move_to_destination(feed_value);
|
prepare_internal_move_to_destination(fr_mm_s);
|
||||||
destination = current_position;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCE_INLINE void move_to(const xyz_pos_t &where, const float &de) { move_to(where.x, where.y, where.z, de); }
|
FORCE_INLINE void move_to(const xyz_pos_t &where, const float &de) { move_to(where.x, where.y, where.z, de); }
|
||||||
|
Loading…
Reference in New Issue
Block a user