Added Junction Deviation support to time estimation #652

Closed
opened 2026-04-05 16:25:12 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @RF47 on 2/22/2026

Description

This PR enhances the GCodeProcessor's time estimation by incorporating Junction Deviation (JD) into the jerk calculations, providing more accurate print time predictions for firmwares that use JD (like modern Marlin).

Key Changes:

  • Added JD support to time estimation

  • Reads machine_max_junction_deviation (machine limits) and default_junction_deviation (print profile)

  • When JD is enabled (>0), replaces traditional X/Y jerk values with JD-based calculation:
    Jerk = \sqrt{2.5\cdot JD \cdot acceleration }

  • Falls back to traditional jerk when JD is not used

Test:

JD:0.0256mm Accel.: 1000 mm/s²
image

Jerk: 8mm/s (equivalent)
image

JD:0.0128mm (4mm/s jerk)
image

*Originally created by @RF47 on 2/22/2026* # Description This PR enhances the GCodeProcessor's time estimation by incorporating Junction Deviation (JD) into the jerk calculations, providing more accurate print time predictions for firmwares that use JD (like modern Marlin). Key Changes: - Added JD support to time estimation - Reads machine_max_junction_deviation (machine limits) and default_junction_deviation (print profile) - When JD is enabled (>0), replaces traditional X/Y jerk values with JD-based calculation: $Jerk = \sqrt{2.5\cdot JD \cdot acceleration }$ - Falls back to traditional jerk when JD is not used # Test: JD:0.0256mm Accel.: 1000 mm/s² <img width="2560" height="1392" alt="image" src="https://github.com/user-attachments/assets/f0e95294-bfca-400e-bffc-8d615d051b70" /> Jerk: 8mm/s (equivalent) <img width="2560" height="1392" alt="image" src="https://github.com/user-attachments/assets/8508727e-70f6-49ed-ac19-002db73e957b" /> JD:0.0128mm (4mm/s jerk) <img width="2560" height="1392" alt="image" src="https://github.com/user-attachments/assets/91b04d3b-1b9e-48f4-b4b4-5addda2eff57" />
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OrcaSlicer#652