corrected retract

This commit is contained in:
Bernhard 2012-06-03 16:56:40 +02:00
parent 0c123950e9
commit d3002ef741

View file

@ -1489,7 +1489,7 @@ void get_coordinates()
//if slicer retracted by echange=-1mm and you want to retract 3mm, corrrectede=-2mm additionally //if slicer retracted by echange=-1mm and you want to retract 3mm, corrrectede=-2mm additionally
float correctede=-echange-retract_length; float correctede=-echange-retract_length;
//to generate the additional steps, not the destination is changed, but inversely the current position //to generate the additional steps, not the destination is changed, but inversely the current position
destination[E_AXIS]+=correctede; current_position[E_AXIS]+=-correctede;
feedrate=retract_feedrate; feedrate=retract_feedrate;
retracted=true; retracted=true;
} }
@ -1502,8 +1502,8 @@ void get_coordinates()
{ {
//current_position[Z_AXIS]+=-retract_zlift; //current_position[Z_AXIS]+=-retract_zlift;
//if slicer retracted_recovered by echange=+1mm and you want to retract_recover 3mm, corrrectede=2mm additionally //if slicer retracted_recovered by echange=+1mm and you want to retract_recover 3mm, corrrectede=2mm additionally
float correctede=-echange+0*retract_length+retract_recover_length; //total unretract=retract_length+retract_recover_length[surplus] float correctede=-echange+1*retract_length+retract_recover_length; //total unretract=retract_length+retract_recover_length[surplus]
current_position[E_AXIS]+=-correctede; //to generate the additional steps, not the destination is changed, but inversely the current position current_position[E_AXIS]+=correctede; //to generate the additional steps, not the destination is changed, but inversely the current position
feedrate=retract_recover_feedrate; feedrate=retract_recover_feedrate;
retracted=false; retracted=false;
} }