small changes

This commit is contained in:
SoftFever 2022-12-23 17:25:04 +08:00
parent a3bae2f9a5
commit a8cf77a2b0
5 changed files with 18 additions and 8 deletions

View File

@ -21,7 +21,7 @@
"FUNC_SEND_TO_SDCARD": false "FUNC_SEND_TO_SDCARD": false
}, },
"camera_resolution":["720p"], "camera_resolution":["720p"],
"bed_temperature_limit": 100, "bed_temperature_limit": 120,
"model_id": "C11", "model_id": "C11",
"printer_type": "C11", "printer_type": "C11",
"printer_thumbnail_image": "printer_thumbnail_p1p" "printer_thumbnail_image": "printer_thumbnail_p1p"
@ -32,6 +32,7 @@
"FUNC_LOCAL_TUNNEL": false "FUNC_LOCAL_TUNNEL": false
}, },
"camera_resolution":["720p","1080p"], "camera_resolution":["720p","1080p"],
"bed_temperature_limit": 120,
"model_id": "BL-P002", "model_id": "BL-P002",
"printer_type": "3DPrinter-X1", "printer_type": "3DPrinter-X1",
"printer_thumbnail_image": "printer_thumbnail" "printer_thumbnail_image": "printer_thumbnail"
@ -43,6 +44,7 @@
}, },
"model_id": "BL-P001", "model_id": "BL-P001",
"camera_resolution":["720p","1080p"], "camera_resolution":["720p","1080p"],
"bed_temperature_limit": 120,
"printer_type": "3DPrinter-X1-Carbon", "printer_type": "3DPrinter-X1-Carbon",
"printer_thumbnail_image": "printer_thumbnail" "printer_thumbnail_image": "printer_thumbnail"
} }

View File

@ -17,6 +17,7 @@ namespace Slic3r {
auto startx = (w - 100) / 2; auto startx = (w - 100) / 2;
auto starty = (h - count * m_space_y) / 2; auto starty = (h - count * m_space_y) / 2;
m_length_long = 40 + std::min(w - 120.0, 30.0);
return print_pa_lines(startx, starty, start_pa, step_pa, count); return print_pa_lines(startx, starty, start_pa, step_pa, count);
} }
@ -31,7 +32,8 @@ namespace Slic3r {
std::string calib_pressure_advance::print_pa_lines(double start_x, double start_y, double start_pa, double step_pa, int num) { std::string calib_pressure_advance::print_pa_lines(double start_x, double start_y, double start_pa, double step_pa, int num) {
auto& writer = mp_gcodegen->writer(); auto& writer = mp_gcodegen->writer();
const double e = 0.04; // filament_mm/extrusion_mm const double e_calib = 0.05; // filament_mm/extrusion_mm
const double e = 0.038; // filament_mm/extrusion_mm
const double fast = mp_gcodegen->config().get_abs_value("outer_wall_speed") * 60.0; const double fast = mp_gcodegen->config().get_abs_value("outer_wall_speed") * 60.0;
const double slow = std::max(1200.0, fast * 0.1); const double slow = std::max(1200.0, fast * 0.1);
@ -39,16 +41,22 @@ namespace Slic3r {
gcode << mp_gcodegen->writer().travel_to_z(0.2); gcode << mp_gcodegen->writer().travel_to_z(0.2);
double y_pos = start_y; double y_pos = start_y;
// prime line
auto prime_x = std::max(start_x - 5, 0.5);
gcode << move_to(Vec2d(prime_x, y_pos + (num - 4) * m_space_y));
gcode << writer.set_speed(slow);
gcode << writer.extrude_to_xy(Vec2d(prime_x, y_pos + 3 * m_space_y), e_calib * m_space_y * num * 1.1);
for (int i = 0; i < num; ++i) { for (int i = 0; i < num; ++i) {
gcode << writer.set_pressure_advance(start_pa + i * step_pa); gcode << writer.set_pressure_advance(start_pa + i * step_pa);
gcode << move_to(Vec2d(start_x, y_pos + i * m_space_y)); gcode << move_to(Vec2d(start_x, y_pos + i * m_space_y));
gcode << writer.set_speed(slow); gcode << writer.set_speed(slow);
gcode << writer.extrude_to_xy(Vec2d(start_x + m_length_short, y_pos + i * m_space_y), e * m_length_short); gcode << writer.extrude_to_xy(Vec2d(start_x + m_length_short, y_pos + i * m_space_y), e_calib * m_length_short);
gcode << writer.set_speed(fast); gcode << writer.set_speed(fast);
gcode << writer.extrude_to_xy(Vec2d(start_x + m_length_short + m_length_long, y_pos + i * m_space_y), e * m_length_long); gcode << writer.extrude_to_xy(Vec2d(start_x + m_length_short + m_length_long, y_pos + i * m_space_y), e_calib * m_length_long);
gcode << writer.set_speed(slow); gcode << writer.set_speed(slow);
gcode << writer.extrude_to_xy(Vec2d(start_x + m_length_short + m_length_long + m_length_short, y_pos + i * m_space_y), e * m_length_short); gcode << writer.extrude_to_xy(Vec2d(start_x + m_length_short + m_length_long + m_length_short, y_pos + i * m_space_y), e_calib * m_length_short);
} }
gcode << writer.set_pressure_advance(0.0); gcode << writer.set_pressure_advance(0.0);

View File

@ -7866,9 +7866,9 @@ void Plater::add_model(bool imperial_units/* = false*/, std::string fname/* = "
} }
void Plater::calib_pa(bool bowden) { void Plater::calib_pa(bool bowden) {
const auto calib_pa_name = "PressureAdvanceTest"; const auto calib_pa_name = "Pressure Advance Test";
new_project(false, false, calib_pa_name); new_project(false, false, calib_pa_name);
add_model(false, Slic3r::resources_dir() + "/calib/sf_placeholder.stl"); add_model(false, Slic3r::resources_dir() + "/calib/pressure_advance_test.stl");
wxGetApp().mainframe->select_tab(size_t(MainFrame::tp3DEditor)); wxGetApp().mainframe->select_tab(size_t(MainFrame::tp3DEditor));
p->background_process.fff_print()->is_calib_mode() = bowden ? Calib_PA_Bowden : Calib_PA_DDE; p->background_process.fff_print()->is_calib_mode() = bowden ? Calib_PA_Bowden : Calib_PA_DDE;

View File

@ -11,4 +11,4 @@ if(NOT DEFINED BBL_INTERNAL_TESTING)
set(BBL_INTERNAL_TESTING "1") set(BBL_INTERNAL_TESTING "1")
endif() endif()
set(SLIC3R_VERSION "01.04.00.18") set(SLIC3R_VERSION "01.04.00.18")
set(SoftFever_VERSION "1.4.0") set(SoftFever_VERSION "1.4.1_dev")