ENH: support_clump_position_calibration
jira: [STUDIO-14896] Change-Id: I2913a1e4022686889aaa94ee31b787930200d02d (cherry picked from commit 14370c8910878c2182189b42e013c1323615c310)
This commit is contained in:
@@ -187,6 +187,8 @@ wxString Slic3r::get_stage_string(int stage)
|
||||
return _L("Measuring Surface");
|
||||
case 58:
|
||||
return _L("Thermal Preconditioning for first layer optimization");
|
||||
case 65:
|
||||
return _L("Calibrating the detection position of nozzle clumping"); // N7
|
||||
default:
|
||||
BOOST_LOG_TRIVIAL(info) << "stage = " << stage;
|
||||
}
|
||||
@@ -1856,7 +1858,7 @@ bool MachineObject::is_support_command_calibration()
|
||||
return true;
|
||||
}
|
||||
|
||||
int MachineObject::command_start_calibration(bool vibration, bool bed_leveling, bool xcam_cali, bool motor_noise, bool nozzle_cali, bool bed_cali)
|
||||
int MachineObject::command_start_calibration(bool vibration, bool bed_leveling, bool xcam_cali, bool motor_noise, bool nozzle_cali, bool bed_cali, bool clumppos_cali)
|
||||
{
|
||||
if (!is_support_command_calibration()) {
|
||||
// fixed gcode file
|
||||
@@ -1869,7 +1871,8 @@ int MachineObject::command_start_calibration(bool vibration, bool bed_leveling,
|
||||
json j;
|
||||
j["print"]["command"] = "calibration";
|
||||
j["print"]["sequence_id"] = std::to_string(MachineObject::m_sequence_id++);
|
||||
j["print"]["option"]= (bed_cali ? 1 << 5 : 0)
|
||||
j["print"]["option"] = + (clumppos_cali ? 1 << 6 : 0)
|
||||
+ (bed_cali ? 1 << 5 : 0)
|
||||
+ (nozzle_cali ? 1 << 4 : 0)
|
||||
+ (motor_noise ? 1 << 3 : 0)
|
||||
+ (vibration ? 1 << 2 : 0)
|
||||
|
||||
Reference in New Issue
Block a user