add chamber_temperature (expert, filament setting)

It doesn't do anything, but can be used to write custom g-code.
Ex: M191 S[chamber_temperature]
This commit is contained in:
supermerill 2019-03-18 15:22:23 +01:00
parent 6b8f973ac5
commit 8b6ab8930b
5 changed files with 24 additions and 3 deletions

View File

@ -98,6 +98,7 @@ bool Print::invalidate_state_by_config_options(const std::vector<t_config_option
"avoid_crossing_perimeters",
"bed_shape",
"bed_temperature",
"chamber_temperature",
"before_layer_gcode",
"between_objects_gcode",
"bridge_acceleration",

View File

@ -96,6 +96,7 @@ void PrintConfigDef::init_fff_params()
def->tooltip = L("Bed temperature for layers after the first one. "
"Set this to zero to disable bed temperature control commands in the output.");
def->cli = "bed-temperature=i@";
def->sidetext = L("°C");
def->min = 0;
def->max = 300;
def->default_value = new ConfigOptionInts { 0 };
@ -237,6 +238,17 @@ void PrintConfigDef::init_fff_params()
def->max = 180;
def->default_value = new ConfigOptionFloat(125);
def = this->add("chamber_temperature", coInts);
def->label = L("Chamber");
def->full_label = L("Chamber temperature");
def->tooltip = L("Chamber temperature0. Note that this setting doesn't do anything, but you can access it in Start G-code, Tool change G-code and the other ones, like for other temperature settings.");
def->cli = "chamber-temperature=i@";
def->sidetext = L("°C");
def->min = 0;
def->max = 300;
def->mode = comExpert;
def->default_value = new ConfigOptionInts{ 0 };
def = this->add("clip_multipart_objects", coBool);
def->label = L("Clip multi-part objects");
def->tooltip = L("When printing multi-material objects, this settings will make slic3r "
@ -1074,6 +1086,7 @@ void PrintConfigDef::init_fff_params()
def->tooltip = L("Heated build plate temperature for the first layer. Set this to zero to disable "
"bed temperature control commands in the output.");
def->cli = "first-layer-bed-temperature=i@";
def->sidetext = L("°C");
def->max = 0;
def->max = 300;
def->default_value = new ConfigOptionInts { 0 };
@ -1138,6 +1151,7 @@ void PrintConfigDef::init_fff_params()
def->tooltip = L("Extruder temperature for first layer. If you want to control temperature manually "
"during print, set this to zero to disable temperature control commands in the output file.");
def->cli = "first-layer-temperature=i@";
def->sidetext = L("°C");
def->min = 0;
def->max = max_temp;
def->default_value = new ConfigOptionInts{ 200 };
@ -2603,6 +2617,7 @@ void PrintConfigDef::init_fff_params()
"temperature control commands in the output.");
def->cli = "temperature=i@";
def->full_label = L("Temperature");
def->sidetext = L("°C");
def->min = 0;
def->max = max_temp;
def->default_value = new ConfigOptionInts { 200 };

View File

@ -895,10 +895,10 @@ public:
ConfigOptionInts bed_temperature;
ConfigOptionFloat bridge_acceleration;
ConfigOptionInts bridge_fan_speed;
ConfigOptionInts top_fan_speed;
ConfigOptionFloat brim_width;
ConfigOptionBool brim_ears;
ConfigOptionFloat brim_ears_max_angle;
ConfigOptionInts chamber_temperature;
ConfigOptionBool complete_objects;
ConfigOptionFloats colorprint_heights;
ConfigOptionBools cooling;
@ -947,6 +947,7 @@ public:
ConfigOptionInt standby_temperature_delta;
ConfigOptionInts temperature;
ConfigOptionInt threads;
ConfigOptionInts top_fan_speed;
ConfigOptionBools wipe;
ConfigOptionBool wipe_tower;
ConfigOptionFloat wipe_tower_x;
@ -976,10 +977,10 @@ protected:
OPT_PTR(bed_temperature);
OPT_PTR(bridge_acceleration);
OPT_PTR(bridge_fan_speed);
OPT_PTR(top_fan_speed);
OPT_PTR(brim_width);
OPT_PTR(brim_ears);
OPT_PTR(brim_ears_max_angle);
OPT_PTR(chamber_temperature);
OPT_PTR(complete_objects);
OPT_PTR(colorprint_heights);
OPT_PTR(cooling);
@ -1028,6 +1029,7 @@ protected:
OPT_PTR(standby_temperature_delta);
OPT_PTR(temperature);
OPT_PTR(threads);
OPT_PTR(top_fan_speed);
OPT_PTR(wipe);
OPT_PTR(wipe_tower);
OPT_PTR(wipe_tower_x);

View File

@ -440,7 +440,8 @@ const std::vector<std::string>& Preset::filament_options()
"min_print_speed", "start_filament_gcode", "end_filament_gcode",
"compatible_prints", "compatible_prints_condition",
"compatible_printers", "compatible_printers_condition", "inherits"
, "filament_wipe_advanced_pigment"
, "filament_wipe_advanced_pigment",
"chamber_temperature"
};
return s_opts;
}

View File

@ -1544,6 +1544,8 @@ void TabFilament::build()
line.append_option(optgroup->get_option("first_layer_bed_temperature"));
line.append_option(optgroup->get_option("bed_temperature"));
optgroup->append_line(line);
optgroup->append_single_option_line("chamber_temperature");
page = add_options_page(_(L("Cooling")), "hourglass.png");
optgroup = page->new_optgroup(_(L("Enable")));