synman / Ender-3-S1-Pro-Firmware

Creality Ender-3 S1 Pro Firmware
146 stars 8 forks source link

Change Z-Offset rate from .05mm to .01mm #6

Closed synman closed 1 year ago

synman commented 1 year ago

in lcd_rts.cpp:

from line 1612, becomes

      else if(recdat.data[0] == 2)
      {
        last_zoffset = zprobe_zoffset;
        if(WITHIN((zprobe_zoffset + 0.05), -5.02, 5.02))
        {
          #if ENABLED(HAS_LEVELING)
            zprobe_zoffset = (zprobe_zoffset + 0.01);
            zprobe_zoffset = zprobe_zoffset - 0.0001;
          #endif
          babystep.add_mm(Z_AXIS, zprobe_zoffset - last_zoffset);
          probe.offset.z = zprobe_zoffset;
        }
        RTS_SndData(zprobe_zoffset * 100, AUTO_BED_LEVEL_ZOFFSET_VP);
      }
      else if(recdat.data[0] == 3)
      {
        last_zoffset = zprobe_zoffset;
        if (WITHIN((zprobe_zoffset - 0.05), -5.02, 5.02))
        {
          #if ENABLED(HAS_LEVELING)
            zprobe_zoffset = (zprobe_zoffset - 0.01);
            zprobe_zoffset = zprobe_zoffset + 0.0001;
          #endif
          babystep.add_mm(Z_AXIS, zprobe_zoffset - last_zoffset);
          probe.offset.z = zprobe_zoffset;
        }
        RTS_SndData(zprobe_zoffset * 100, AUTO_BED_LEVEL_ZOFFSET_VP);
      }
synman commented 1 year ago

I thought I had addressed this but it looks like Creality has some redundant code effecting it. I'll try again tonight.

synman commented 1 year ago

this should be fixed in all builds

synman commented 1 year ago

opening this back up given some feedback in discussions

synman commented 1 year ago

fix for this is going live tonight. .01mm baby stepping will only be supported when not printing from the sd card