Skip to content

Commit 11d11e4

Browse files
committed
Code Cleanup and Testing
1 parent a6e1933 commit 11d11e4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ArcWelder/segmented_shape.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,11 @@ bool circle::is_over_deviation(const array_list<printer_point>& points, const do
305305
double z_step_per_distance = 0;
306306
// shared point to test
307307
point point_to_test;
308-
point current_point;
309308
int max_index = points.count() - 1;
310309
// Skip the first and last points since they will fit perfectly.
311310
for (int index = 0; index < max_index; index++)
312311
{
313-
current_point = points[index];
312+
point current_point(points[index]);
314313
if (index != 0)
315314
{
316315
// Make sure the length from the center of our circle to the test point is

ArcWelderTest/ArcWelderTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ static void TestAntiStutter(std::string filePath)
274274
double mm_per_arc_segment = 0;
275275

276276
//double path_tolerance_percent = ARC_LENGTH_PERCENT_TOLERANCE_DEFAULT; // 1 percent
277-
double path_tolerance_percent = 100000;
277+
double path_tolerance_percent = 0.05;
278278
//double path_tolerance_percent = 0.05;
279279
std::vector<std::string> logger_names;
280280
logger_names.push_back("arc_welder.gcode_conversion");

0 commit comments

Comments
 (0)