Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FormerLurker/ArcWelderLib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFormerLurker <hochgebe@gmail.com>2020-11-23 17:39:15 +0300
committerFormerLurker <hochgebe@gmail.com>2020-11-23 17:39:15 +0300
commitf2b52d935ebc81a2eb12cfd7a1c4b924cfc5ea68 (patch)
treec790f2249ef02d6bdd10dc8d44f9b3bcf58a4cdb /ArcWelderTest
parent3eda30c23a6a8f1679989e1862e6c9d815cdbd7e (diff)
Implement #18 and #19. Fix some compiler warnings.
Diffstat (limited to 'ArcWelderTest')
-rw-r--r--ArcWelderTest/ArcWelderTest.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/ArcWelderTest/ArcWelderTest.cpp b/ArcWelderTest/ArcWelderTest.cpp
index 226e4b6..b121d05 100644
--- a/ArcWelderTest/ArcWelderTest.cpp
+++ b/ArcWelderTest/ArcWelderTest.cpp
@@ -233,9 +233,13 @@ static gcode_position_args get_5_extruder_position_args()
static void TestAntiStutter(std::string filePath)
{
- //double max_resolution = DEFAULT_RESOLUTION_MM;
- double max_resolution = 1;
+ double max_resolution = DEFAULT_RESOLUTION_MM;
+ //double max_resolution = 1;
double max_radius_mm = DEFAULT_MAX_RADIUS_MM;
+ //int min_arc_segments = DEFAULT_MIN_ARC_SEGMENTS;
+ int min_arc_segments = 12;
+ double mm_per_arc_segment = 1;
+
double path_tolerance_percent = ARC_LENGTH_PERCENT_TOLERANCE_DEFAULT; // 1 percent
//double path_tolerance_percent = 0.05;
std::vector<std::string> logger_names;
@@ -253,12 +257,14 @@ static void TestAntiStutter(std::string filePath)
//arc_welder arc_welder_obj(BENCHY_0_5_MM_NO_WIPE, "C:\\Users\\Brad\\Documents\\3DPrinter\\AntiStutter\\test_output.gcode", p_logger, max_resolution, false, 50, static_cast<progress_callback>(on_progress));
//arc_welder arc_welder_obj(SIX_SPEED_TEST, "C:\\Users\\Brad\\Documents\\3DPrinter\\AntiStutter\\test_output.gcode", p_logger, max_resolution, false, 50, on_progress);
arc_welder arc_welder_obj(
- SPIRAL_VASE_TEST_DOUBLE_SPIRAL,
+ BENCHY_L1_DIFFICULT,
"C:\\Users\\Brad\\Documents\\3DPrinter\\AntiStutter\\test_output.gcode",
p_logger,
max_resolution,
path_tolerance_percent,
max_radius_mm,
+ min_arc_segments,
+ mm_per_arc_segment,
false,
true,
DEFAULT_GCODE_BUFFER_SIZE,