max_jerk array, DEFAULT_XYJERK => DEFAULT_[XY]JERK
This commit is contained in:
@ -5548,11 +5548,11 @@ inline void gcode_M92() {
|
||||
float value = code_value_per_axis_unit(i);
|
||||
if (value < 20.0) {
|
||||
float factor = planner.axis_steps_per_mm[i] / value; // increase e constants if M92 E14 is given for netfab.
|
||||
planner.max_e_jerk *= factor;
|
||||
planner.max_feedrate_mm_s[i] *= factor;
|
||||
planner.max_acceleration_steps_per_s2[i] *= factor;
|
||||
planner.max_jerk[E_AXIS] *= factor;
|
||||
planner.max_feedrate_mm_s[E_AXIS] *= factor;
|
||||
planner.max_acceleration_steps_per_s2[E_AXIS] *= factor;
|
||||
}
|
||||
planner.axis_steps_per_mm[i] = value;
|
||||
planner.axis_steps_per_mm[E_AXIS] = value;
|
||||
}
|
||||
else {
|
||||
planner.axis_steps_per_mm[i] = code_value_per_axis_unit(i);
|
||||
@ -5788,9 +5788,10 @@ inline void gcode_M205() {
|
||||
if (code_seen('S')) planner.min_feedrate_mm_s = code_value_linear_units();
|
||||
if (code_seen('T')) planner.min_travel_feedrate_mm_s = code_value_linear_units();
|
||||
if (code_seen('B')) planner.min_segment_time = code_value_millis();
|
||||
if (code_seen('X')) planner.max_xy_jerk = code_value_linear_units();
|
||||
if (code_seen('Z')) planner.max_z_jerk = code_value_axis_units(Z_AXIS);
|
||||
if (code_seen('E')) planner.max_e_jerk = code_value_axis_units(E_AXIS);
|
||||
if (code_seen('X')) planner.max_jerk[X_AXIS] = code_value_axis_units(X_AXIS);
|
||||
if (code_seen('Y')) planner.max_jerk[Y_AXIS] = code_value_axis_units(Y_AXIS);
|
||||
if (code_seen('Z')) planner.max_jerk[Z_AXIS] = code_value_axis_units(Z_AXIS);
|
||||
if (code_seen('E')) planner.max_jerk[E_AXIS] = code_value_axis_units(E_AXIS);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user