🩹Increase range of G34 accuracy target (#26771)
* Allow G34 accuracy down to 0.001mm, previous minimum was 0.01mm.
This commit is contained in:
@@ -115,8 +115,8 @@ void GcodeSuite::G34() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const float z_auto_align_accuracy = parser.floatval('T', Z_STEPPER_ALIGN_ACC);
|
const float z_auto_align_accuracy = parser.floatval('T', Z_STEPPER_ALIGN_ACC);
|
||||||
if (!WITHIN(z_auto_align_accuracy, 0.01f, 1.0f)) {
|
if (!WITHIN(z_auto_align_accuracy, 0.001f, 1.0f)) {
|
||||||
SERIAL_ECHOLNPGM(GCODE_ERR_MSG("(T)arget accuracy out of bounds (0.01-1.0)."));
|
SERIAL_ECHOLNPGM(GCODE_ERR_MSG("(T)arget accuracy out of bounds (0.001-1.0)."));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -3617,6 +3617,7 @@ static_assert(_PLUS_TEST(3), "DEFAULT_MAX_ACCELERATION values must be positive."
|
|||||||
#error "Z_STEPPER_ALIGN_STEPPER_XY requires 3 or 4 Z steppers."
|
#error "Z_STEPPER_ALIGN_STEPPER_XY requires 3 or 4 Z steppers."
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
static_assert(WITHIN(Z_STEPPER_ALIGN_ACC, 0.001, 1.0), "Z_STEPPER_ALIGN_ACC needs to be between 0.001 and 1.0");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(MECHANICAL_GANTRY_CALIBRATION)
|
#if ENABLED(MECHANICAL_GANTRY_CALIBRATION)
|
||||||
|
Reference in New Issue
Block a user