Fixed default values for filament_cooling_initial_speed and filament_cooling_final_speed.

Don't use float value for double type parameter
This commit is contained in:
YuSanka 2022-06-13 16:55:43 +02:00 committed by Lukas Matena
parent 3a792738cb
commit 311ac96e45

View File

@ -620,7 +620,7 @@ void PrintConfigDef::init_fff_params()
def->sidetext = L("mm");
def->min = 0;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionFloat(91.5f));
def->set_default_value(new ConfigOptionFloat(91.5));
def = this->add("cooling_tube_length", coFloat);
def->label = L("Cooling tube length");
@ -628,7 +628,7 @@ void PrintConfigDef::init_fff_params()
def->sidetext = L("mm");
def->min = 0;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionFloat(5.f));
def->set_default_value(new ConfigOptionFloat(5.));
def = this->add("default_acceleration", coFloat);
def->label = L("Default");
@ -968,7 +968,7 @@ void PrintConfigDef::init_fff_params()
def->sidetext = L("mm/s");
def->min = 0;
def->mode = comExpert;
def->set_default_value(new ConfigOptionFloats { 2.2f });
def->set_default_value(new ConfigOptionFloats { 2.2 });
def = this->add("filament_minimal_purge_on_wipe_tower", coFloats);
def->label = L("Minimal purge on wipe tower");
@ -979,7 +979,7 @@ void PrintConfigDef::init_fff_params()
def->sidetext = L("mm³");
def->min = 0;
def->mode = comExpert;
def->set_default_value(new ConfigOptionFloats { 15.f });
def->set_default_value(new ConfigOptionFloats { 15. });
def = this->add("filament_cooling_final_speed", coFloats);
def->label = L("Speed of the last cooling move");
@ -987,7 +987,7 @@ void PrintConfigDef::init_fff_params()
def->sidetext = L("mm/s");
def->min = 0;
def->mode = comExpert;
def->set_default_value(new ConfigOptionFloats { 3.4f });
def->set_default_value(new ConfigOptionFloats { 3.4 });
def = this->add("filament_load_time", coFloats);
def->label = L("Filament load time");
@ -995,7 +995,7 @@ void PrintConfigDef::init_fff_params()
def->sidetext = L("s");
def->min = 0;
def->mode = comExpert;
def->set_default_value(new ConfigOptionFloats { 0.0f });
def->set_default_value(new ConfigOptionFloats { 0. });
def = this->add("filament_ramming_parameters", coStrings);
def->label = L("Ramming parameters");
@ -1010,7 +1010,7 @@ void PrintConfigDef::init_fff_params()
def->sidetext = L("s");
def->min = 0;
def->mode = comExpert;
def->set_default_value(new ConfigOptionFloats { 0.0f });
def->set_default_value(new ConfigOptionFloats { 0. });
def = this->add("filament_diameter", coFloats);
def->label = L("Diameter");
@ -1547,7 +1547,7 @@ void PrintConfigDef::init_fff_params()
def->min = 0;
def->category = L("Advanced");
def->mode = comExpert;
def->set_default_value(new ConfigOptionFloat(0.f));
def->set_default_value(new ConfigOptionFloat(0.));
def = this->add("ironing", coBool);
def->label = L("Enable ironing");
@ -1941,7 +1941,7 @@ void PrintConfigDef::init_fff_params()
def->sidetext = L("mm");
def->min = 0;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionFloat(92.f));
def->set_default_value(new ConfigOptionFloat(92.));
def = this->add("extra_loading_move", coFloat);
def->label = L("Extra loading distance");
@ -1950,7 +1950,7 @@ void PrintConfigDef::init_fff_params()
" if negative, the loading move is shorter than unloading.");
def->sidetext = L("mm");
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionFloat(-2.f));
def->set_default_value(new ConfigOptionFloat(-2.));
def = this->add("perimeter_acceleration", coFloat);
def->label = L("Perimeters");
@ -2970,17 +2970,17 @@ void PrintConfigDef::init_fff_params()
def->tooltip = L("This vector saves required volumes to change from/to each tool used on the "
"wipe tower. These values are used to simplify creation of the full purging "
"volumes below.");
def->set_default_value(new ConfigOptionFloats { 70.f, 70.f, 70.f, 70.f, 70.f, 70.f, 70.f, 70.f, 70.f, 70.f });
def->set_default_value(new ConfigOptionFloats { 70., 70., 70., 70., 70., 70., 70., 70., 70., 70. });
def = this->add("wiping_volumes_matrix", coFloats);
def->label = L("Purging volumes - matrix");
def->tooltip = L("This matrix describes volumes (in cubic milimetres) required to purge the"
" new filament on the wipe tower for any given pair of tools.");
def->set_default_value(new ConfigOptionFloats { 0.f, 140.f, 140.f, 140.f, 140.f,
140.f, 0.f, 140.f, 140.f, 140.f,
140.f, 140.f, 0.f, 140.f, 140.f,
140.f, 140.f, 140.f, 0.f, 140.f,
140.f, 140.f, 140.f, 140.f, 0.f });
def->set_default_value(new ConfigOptionFloats { 0., 140., 140., 140., 140.,
140., 0., 140., 140., 140.,
140., 140., 0., 140., 140.,
140., 140., 140., 0., 140.,
140., 140., 140., 140., 0. });
def = this->add("wipe_tower_x", coFloat);
def->label = L("Position X");
@ -3015,7 +3015,7 @@ void PrintConfigDef::init_fff_params()
def->tooltip = L("Wipe tower brim width");
def->sidetext = L("mm");
def->mode = comAdvanced;
def->min = 0.f;
def->min = 0.;
def->set_default_value(new ConfigOptionFloat(2.));
def = this->add("wipe_into_infill", coBool);
@ -3740,7 +3740,7 @@ void PrintConfigDef::init_sla_params()
def->tooltip = L("No support points will be placed closer than this threshold.");
def->sidetext = L("mm");
def->min = 0;
def->set_default_value(new ConfigOptionFloat(1.f));
def->set_default_value(new ConfigOptionFloat(1.));
def = this->add("pad_enable", coBool);
def->label = L("Use pad");