Skip to content

Commit

Permalink
Code Cleanup and Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
FormerLurker committed Jan 24, 2021
1 parent a6e1933 commit 11d11e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions ArcWelder/segmented_shape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,11 @@ bool circle::is_over_deviation(const array_list<printer_point>& points, const do
double z_step_per_distance = 0;
// shared point to test
point point_to_test;
point current_point;
int max_index = points.count() - 1;
// Skip the first and last points since they will fit perfectly.
for (int index = 0; index < max_index; index++)
{
current_point = points[index];
point current_point(points[index]);
if (index != 0)
{
// Make sure the length from the center of our circle to the test point is
Expand Down
2 changes: 1 addition & 1 deletion ArcWelderTest/ArcWelderTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ static void TestAntiStutter(std::string filePath)
double mm_per_arc_segment = 0;

//double path_tolerance_percent = ARC_LENGTH_PERCENT_TOLERANCE_DEFAULT; // 1 percent
double path_tolerance_percent = 100000;
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");
Expand Down

0 comments on commit 11d11e4

Please sign in to comment.