Also use G1 when traveling with avoid_crossing_perimeters enabled

This commit is contained in:
Alessandro Ranellucci 2013-06-05 17:12:34 +02:00
parent 532ae53d0b
commit 8c40cefe1e

View File

@ -339,7 +339,8 @@ sub _plan {
# append the actual path and return
$self->speed('travel');
$gcode .= join '', map $self->G0($_->[B], undef, 0, $comment || ""), @travel;
# use G1 because we rely on paths being straight (G0 may make round paths)
$gcode .= join '', map $self->G1($_->[B], undef, 0, $comment || ""), @travel;
return $gcode;
}