Browse Source

corrected retract

Bernhard 12 years ago
parent
commit
d3002ef741
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/Marlin.pde

+ 3
- 3
Marlin/Marlin.pde View File

1489
       //if slicer retracted by echange=-1mm and you want to retract 3mm, corrrectede=-2mm additionally
1489
       //if slicer retracted by echange=-1mm and you want to retract 3mm, corrrectede=-2mm additionally
1490
       float correctede=-echange-retract_length;
1490
       float correctede=-echange-retract_length;
1491
       //to generate the additional steps, not the destination is changed, but inversely the current position
1491
       //to generate the additional steps, not the destination is changed, but inversely the current position
1492
-      destination[E_AXIS]+=correctede; 
1492
+      current_position[E_AXIS]+=-correctede; 
1493
       feedrate=retract_feedrate;
1493
       feedrate=retract_feedrate;
1494
       retracted=true;
1494
       retracted=true;
1495
       }
1495
       }
1502
       {
1502
       {
1503
       //current_position[Z_AXIS]+=-retract_zlift;
1503
       //current_position[Z_AXIS]+=-retract_zlift;
1504
       //if slicer retracted_recovered by echange=+1mm and you want to retract_recover 3mm, corrrectede=2mm additionally
1504
       //if slicer retracted_recovered by echange=+1mm and you want to retract_recover 3mm, corrrectede=2mm additionally
1505
-      float correctede=-echange+0*retract_length+retract_recover_length; //total unretract=retract_length+retract_recover_length[surplus]
1506
-      current_position[E_AXIS]+=-correctede; //to generate the additional steps, not the destination is changed, but inversely the current position
1505
+      float correctede=-echange+1*retract_length+retract_recover_length; //total unretract=retract_length+retract_recover_length[surplus]
1506
+      current_position[E_AXIS]+=correctede; //to generate the additional steps, not the destination is changed, but inversely the current position
1507
       feedrate=retract_recover_feedrate;
1507
       feedrate=retract_recover_feedrate;
1508
       retracted=false;
1508
       retracted=false;
1509
       }
1509
       }

Loading…
Cancel
Save