ENH: implement mult extruder params

Jira: none

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I906b106aa4c73272a418528db0e964d9130b0dd7
(cherry picked from commit 8af6f6d13b609b7ed5f25c3b36b966f533054d7b)
This commit is contained in:
qing.zhang 2024-06-12 16:28:58 +08:00 committed by Noisyfox
parent d9efd47c90
commit cca85fe861
8 changed files with 181 additions and 165 deletions

View file

@ -861,10 +861,11 @@ std::string GCodeWriter::lift(LiftType lift_type, bool spiral_vase)
// check whether the above/below conditions are met
double target_lift = 0;
{
double above = this->config.retract_lift_above.get_at(m_extruder->id());
double below = this->config.retract_lift_below.get_at(m_extruder->id());
int extruder_id = m_extruder->extruder_id();
double above = this->config.retract_lift_above.get_at(extruder_id);
double below = this->config.retract_lift_below.get_at(extruder_id);
if (m_pos(2) >= above && (below == 0 || m_pos(2) <= below))
target_lift = this->config.z_hop.get_at(m_extruder->id());
target_lift = this->config.z_hop.get_at(extruder_id);
}
// BBS
if (m_lifted == 0 && m_to_lift == 0 && target_lift > 0) {