mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-06 13:34:05 -06:00
Acceleration control. #185
This commit is contained in:
parent
ad8c9d4ea1
commit
74c71b4ef2
5 changed files with 38 additions and 1 deletions
|
@ -233,6 +233,15 @@ sub unretract {
|
|||
return $gcode;
|
||||
}
|
||||
|
||||
sub set_acceleration {
|
||||
my $self = shift;
|
||||
my ($acceleration) = @_;
|
||||
return unless $Slic3r::acceleration;
|
||||
|
||||
return sprintf "M201 E%s%s\n",
|
||||
$acceleration, ($Slic3r::gcode_comments ? ' ; adjust acceleration' : '');
|
||||
}
|
||||
|
||||
sub G0 {
|
||||
my $self = shift;
|
||||
return $self->G1(@_) if !$Slic3r::g0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue