We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a216e3 commit e78de17Copy full SHA for e78de17
Marlin/src/gcode/calibrate/G28.cpp
@@ -76,12 +76,9 @@
76
77
const int x_axis_home_dir = TOOL_X_HOME_DIR(active_extruder);
78
79
- const float hfx = homing_feedrate(X_AXIS), hfy = homing_feedrate(Y_AXIS),
80
- r_xy = hfx / hfy, r_yx = hfy / hfx,
81
- r_length = max_length(X_AXIS) / max_length(Y_AXIS),
82
- mlx = r_length < r_xy ? max_length(Y_AXIS) * r_xy : max_length(X_AXIS),
83
- mly = r_length > r_xy ? max_length(X_AXIS) * r_yx : max_length(Y_AXIS),
84
- fr_mm_s = HYPOT(hfx, hfy);
+ // Use a higher diagonal feedrate so axes move at homing speed
+ const float minfr = _MIN(homing_feedrate(X_AXIS), homing_feedrate(Y_AXIS)),
+ fr_mm_s = SQRT(sq(minfr) * 2);
85
86
#if ENABLED(SENSORLESS_HOMING)
87
sensorless_t stealth_states {
0 commit comments