mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-23 19:02:10 +00:00
FIX: k value of ams control is not correct
modify the method for using printer type Change-Id: Ica864c19f4ad3e58e4f478e078b55fc11485901a
This commit is contained in:
@@ -737,6 +737,20 @@ int CalibUtils::get_selected_calib_idx(const std::vector<PACalibResult> &pa_cali
|
||||
return -1;
|
||||
}
|
||||
|
||||
bool CalibUtils::get_pa_k_n_value_by_cali_idx(const MachineObject *obj, int cali_idx, float &out_k, float &out_n) {
|
||||
if (!obj)
|
||||
return false;
|
||||
|
||||
for (auto pa_calib_info : obj->pa_calib_tab) {
|
||||
if (pa_calib_info.cali_idx == cali_idx) {
|
||||
out_k = pa_calib_info.k_value;
|
||||
out_n = pa_calib_info.n_coef;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void CalibUtils::process_and_store_3mf(Model* model, const DynamicPrintConfig& full_config, const Calib_Params& params, std::string& error_message)
|
||||
{
|
||||
Pointfs bedfs = full_config.opt<ConfigOptionPoints>("printable_area")->values;
|
||||
|
||||
Reference in New Issue
Block a user