ENH: add acceleration para

thanks SoftFever

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Ie82934e2fb5cdb4ec77246e2d5cd6be36fdc7d5a
This commit is contained in:
qing.zhang authored and Lane.Wei committed 2023-07-07 17:29:08 +08:00
1 parent 9b5a86ba01
commit ec756bc2df
7 files changed
+31 -4

No files matched your search

+4
View File
@@ -3808,6 +3808,10 @@ std::string GCode::_extrude(const ExtrusionPath &path, std::string description,
acceleration = m_config.outer_wall_acceleration.value;
} else if (m_config.top_surface_acceleration.value > 0 && is_top_surface(path.role())) {
acceleration = m_config.top_surface_acceleration.value;
} else if (m_config.inner_wall_acceleration.value > 0 && path.role() == erPerimeter) {
acceleration = m_config.inner_wall_acceleration.value;
} else if (m_config.get_abs_value("sparse_infill_acceleration") > 0 && (path.role() == erInternalInfill)) {
acceleration = m_config.get_abs_value("sparse_infill_acceleration");
} else {
acceleration = m_config.default_acceleration.value;
}