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-12-13 00:49:33 +0300
committerFormerLurker <hochgebe@gmail.com>2020-12-13 00:49:33 +0300
commit893b8eea5e182457e90db9ddbaac8a7fb435a0c7 (patch)
tree421dd5296fcdf57f807c86a2a78ceb5143201fbe /ArcWelderTest
parent8cbd08c6c27bb792d28345d24ffc7a7765c35079 (diff)
Prevent arc generation if I and J are both 0 within the current precision. Add default xyz and e precision settings, and enable/disable dynamic gcode precision.
Diffstat (limited to 'ArcWelderTest')
-rw-r--r--ArcWelderTest/ArcWelderTest.cpp9
-rw-r--r--ArcWelderTest/ArcWelderTest.h2
2 files changed, 7 insertions, 4 deletions
diff --git a/ArcWelderTest/ArcWelderTest.cpp b/ArcWelderTest/ArcWelderTest.cpp
index ab33d83..0a11498 100644
--- a/ArcWelderTest/ArcWelderTest.cpp
+++ b/ArcWelderTest/ArcWelderTest.cpp
@@ -237,11 +237,11 @@ static void TestAntiStutter(std::string filePath)
double max_resolution = 0.05;
double max_radius_mm = 100000;
//int min_arc_segments = DEFAULT_MIN_ARC_SEGMENTS;
- int min_arc_segments = 12;
+ int min_arc_segments = 0;
double mm_per_arc_segment = 1;
//double path_tolerance_percent = ARC_LENGTH_PERCENT_TOLERANCE_DEFAULT; // 1 percent
- double path_tolerance_percent = 0.05;
+ double path_tolerance_percent = 0.05;
//double path_tolerance_percent = 0.05;
std::vector<std::string> logger_names;
logger_names.push_back("arc_welder.gcode_conversion");
@@ -259,7 +259,7 @@ 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(
- ISSUE_85,
+ ISSUE_93,
"C:\\Users\\Brad\\Documents\\3DPrinter\\AntiStutter\\test_output.gcode",
p_logger,
max_resolution,
@@ -269,6 +269,9 @@ static void TestAntiStutter(std::string filePath)
mm_per_arc_segment,
false,
true,
+ DEFAULT_ALLOW_DYNAMIC_PRECISION,
+ DEFAULT_XYZ_PRECISION,
+ DEFAULT_E_PRECISION,
DEFAULT_GCODE_BUFFER_SIZE,
on_progress);
//FIRMWARE_COMPENSATION_TEST_1
diff --git a/ArcWelderTest/ArcWelderTest.h b/ArcWelderTest/ArcWelderTest.h
index e6d843a..65a3604 100644
--- a/ArcWelderTest/ArcWelderTest.h
+++ b/ArcWelderTest/ArcWelderTest.h
@@ -88,7 +88,7 @@ static std::string SPIRAL_VASE_TEST_PI_BOWL = "C:\\Users\\Brad\\Documents\\3DPri
static std::string FIRMWARE_COMPENSATION_TEST_1 = "C:\\Users\\Brad\\Documents\\3DPrinter\\AntiStutter\\cylinder_tests\\cylinder_test_0.1_5.0_0.1.gcode";
static std::string BENCHY_MIN_RADIUS_TEST = "C:\\Users\\Brad\\Documents\\3DPrinter\\AntiStutter\\BenchyMinRadiusTest.gcode";
-static std::string ISSUE_85 = "C:\\Users\\Brad\\Documents\\3DPrinter\\AntiStutter\\Issue85.gcode";
+static std::string ISSUE_93 = "C:\\Users\\Brad\\Documents\\3DPrinter\\AntiStutter\\Issues\\93\\FailingGCode.gcode";