Commit Graph
4 Commits
Author SHA1 Message Date
Ian Bassi 1a57ea3a13 Compare floats with a tolerance in the G-code reader and fan mover tests 2026-11-30 14:27:08 -03:00
Ian Bassi 8700087b88 Read the moves after a role tag as absolute in the fan mover
Custom G-code that switches to G91 and back through a macro, such as
RESTORE_GCODE_STATE, left the fan mover's reader in relative positioning
for the rest of the print, so it measured every later move wrong and
split none. Orca's own moves, which follow a role tag, are absolute, or
the print itself would go wrong, so put the reader back to absolute
positioning at each role tag.
2026-11-30 14:27:08 -03:00
Ian Bassiandlhx 021c6d6e22 Follow relative positioning in the G-code reader
GCodeReader read every X, Y and Z as absolute, also after G91. Custom
G-code that lifts the nozzle with "G91 / G1 Z2 / G90" left the reader
2 mm low, and the next absolute Z move looked like a move up. When the
fan mover then split that move to place a fan command earlier, it
wrote a Z between the wrong height and the target, so the nozzle dipped
into the print. Track G90 and G91, and make the distances and targets
of a line relative while G91 is in effect. The fan mover no longer
splits a move read in relative mode, since the split writes absolute
coordinates.

Ported from Snapmaker/OrcaSlicer@99d613e354

Co-authored-by: lhx <luohaoxuan@snapmaker.com>
2026-11-30 14:27:08 -03:00
Valerii Bokhan 887a8f1806 Feature: Add experimental high precision G-code export (#16568) 2026-10-25 16:29:13 -03:00