mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-16 11:17:48 -06:00
⚡️ Optimal recalculate_max_e_jerk
This commit is contained in:
parent
aa7af2e2ea
commit
72f3a4ac31
1 changed files with 2 additions and 2 deletions
|
@ -1088,8 +1088,8 @@ class Planner {
|
||||||
#if HAS_LINEAR_E_JERK
|
#if HAS_LINEAR_E_JERK
|
||||||
FORCE_INLINE static void recalculate_max_e_jerk() {
|
FORCE_INLINE static void recalculate_max_e_jerk() {
|
||||||
const float prop = junction_deviation_mm * SQRT(0.5) / (1.0f - SQRT(0.5));
|
const float prop = junction_deviation_mm * SQRT(0.5) / (1.0f - SQRT(0.5));
|
||||||
EXTRUDER_LOOP()
|
for (uint8_t i = 0; i < DISTINCT_E; ++i)
|
||||||
max_e_jerk[E_INDEX_N(e)] = SQRT(prop * settings.max_acceleration_mm_per_s2[E_AXIS_N(e)]);
|
max_e_jerk[i] = SQRT(prop * settings.max_acceleration_mm_per_s2[E_AXIS + i]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue