Commit 179e344 2 people authored and committed
1 parent a9df6c2 commit 179e344 Copy full SHA for 179e344
File tree 1 file changed +4
-5
lines changed
Marlin/src/gcode/calibrate
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 76
76
77
77
const int x_axis_home_dir = TOOL_X_HOME_DIR (active_extruder);
78
78
79
- const float mlx = max_length (X_AXIS),
80
- mly = max_length (Y_AXIS),
81
- mlratio = mlx > mly ? mly / mlx : mlx / mly,
82
- fr_mm_s = _MIN (homing_feedrate (X_AXIS), homing_feedrate (Y_AXIS)) * SQRT (sq (mlratio) + 1.0 );
79
+ // Use a higher diagonal feedrate so axes move at homing speed
80
+ const float minfr = _MIN (homing_feedrate (X_AXIS), homing_feedrate (Y_AXIS)),
81
+ fr_mm_s = HYPOT (minfr, minfr);
83
82
84
83
#if ENABLED(SENSORLESS_HOMING)
85
84
sensorless_t stealth_states {
95
94
};
96
95
#endif
97
96
98
- do_blocking_move_to_xy (1.5 * mlx * x_axis_home_dir, 1.5 * mly * Y_HOME_DIR, fr_mm_s);
97
+ do_blocking_move_to_xy (1.5 * max_length (X_AXIS) * x_axis_home_dir, 1.5 * max_length (Y_AXIS) * Y_HOME_DIR, fr_mm_s);
99
98
100
99
endstops.validate_homing_move ();
101
100
You can’t perform that action at this time.
0 commit comments