New --bridge-acceleration option
This commit is contained in:
parent
2acda9973e
commit
e9c7460c11
@ -163,6 +163,9 @@ The author of the Silk icon set is Mark James.
|
||||
--infill-acceleration
|
||||
Overrides firmware's default acceleration for infill. (mm/s^2, set zero
|
||||
to disable; default: 0)
|
||||
--bridge-acceleration
|
||||
Overrides firmware's default acceleration for bridges. (mm/s^2, set zero
|
||||
to disable; default: 0)
|
||||
--default-acceleration
|
||||
Acceleration will be reset to this value after the specific settings above
|
||||
have been applied. (mm/s^2, set zero to disable; default: 130)
|
||||
|
@ -343,6 +343,14 @@ our $Options = {
|
||||
type => 'f',
|
||||
default => 0,
|
||||
},
|
||||
'bridge_acceleration' => {
|
||||
label => 'Bridge',
|
||||
tooltip => 'This is the acceleration your printer will use for bridges. Set zero to disable acceleration control for bridges.',
|
||||
sidetext => 'mm/s²',
|
||||
cli => 'bridge-acceleration=f',
|
||||
type => 'f',
|
||||
default => 0,
|
||||
},
|
||||
|
||||
# accuracy options
|
||||
'layer_height' => {
|
||||
|
@ -199,10 +199,13 @@ sub extrude_path {
|
||||
|
||||
# adjust acceleration
|
||||
my $acceleration;
|
||||
$acceleration = $Slic3r::Config->perimeter_acceleration
|
||||
if $Slic3r::Config->perimeter_acceleration && $path->is_perimeter;
|
||||
$acceleration = $Slic3r::Config->infill_acceleration
|
||||
if $Slic3r::Config->infill_acceleration && $path->is_fill;
|
||||
if ($Slic3r::Config->perimeter_acceleration && $path->is_perimeter) {
|
||||
$acceleration = $Slic3r::Config->perimeter_acceleration;
|
||||
} elsif ($Slic3r::Config->infill_acceleration && $path->is_fill) {
|
||||
$acceleration = $Slic3r::Config->infill_acceleration;
|
||||
} elsif ($Slic3r::Config->infill_acceleration && $path->role == EXTR_ROLE_BRIDGE) {
|
||||
$acceleration = $Slic3r::Config->bridge_acceleration;
|
||||
}
|
||||
$gcode .= $self->set_acceleration($acceleration) if $acceleration;
|
||||
|
||||
my $area; # mm^3 of extrudate per mm of tool movement
|
||||
|
@ -438,7 +438,7 @@ sub build {
|
||||
},
|
||||
{
|
||||
title => 'Acceleration control (advanced)',
|
||||
options => [qw(perimeter_acceleration infill_acceleration default_acceleration)],
|
||||
options => [qw(perimeter_acceleration infill_acceleration bridge_acceleration default_acceleration)],
|
||||
},
|
||||
]);
|
||||
|
||||
|
@ -216,6 +216,9 @@ $j
|
||||
--infill-acceleration
|
||||
Overrides firmware's default acceleration for infill. (mm/s^2, set zero
|
||||
to disable; default: $config->{infill_acceleration})
|
||||
--bridge-acceleration
|
||||
Overrides firmware's default acceleration for bridges. (mm/s^2, set zero
|
||||
to disable; default: $config->{bridge_acceleration})
|
||||
--default-acceleration
|
||||
Acceleration will be reset to this value after the specific settings above
|
||||
have been applied. (mm/s^2, set zero to disable; default: $config->{travel_speed})
|
||||
|
Loading…
Reference in New Issue
Block a user