Fix travel slope param range and type

This commit is contained in:
Martin Šach 2023-11-08 15:49:15 +01:00 committed by SachCZ
parent 5927a20905
commit 0c64950151
2 changed files with 4 additions and 4 deletions

View File

@ -2333,15 +2333,15 @@ void PrintConfigDef::init_fff_params()
def->mode = comExpert;
def->set_default_value(new ConfigOptionFloats { 10. });
def = this->add("travel_slope", coPercents);
def = this->add("travel_slope", coFloats);
def->label = L("Ramping slope angle");
def->tooltip = L("During travel there is a part of the travel that is sloped upwards. "
"This number indicates the slope of the travel as mm raised per mm traveled in percent.");
def->sidetext = L("°");
def->min = 0;
def->max_literal = 1000;
def->max_literal = 90;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionPercents{0.0});
def->set_default_value(new ConfigOptionFloats{0.0});
def = this->add("travel_ramping_lift", coBools);
def->label = L("Use ramping lift");

View File

@ -747,7 +747,7 @@ PRINT_CONFIG_CLASS_DEFINE(
((ConfigOptionFloat, max_volumetric_extrusion_rate_slope_negative))
((ConfigOptionBools, travel_ramping_lift))
((ConfigOptionFloats, travel_max_lift))
((ConfigOptionPercents, travel_slope))
((ConfigOptionFloats, travel_slope))
((ConfigOptionBools, travel_lift_before_obstacle))
((ConfigOptionPercents, retract_before_wipe))
((ConfigOptionFloats, retract_length))