From 9b0afec63643275ecdc9005bfbbba20e359a7938 Mon Sep 17 00:00:00 2001 From: FormerLurker Date: Sun, 21 Nov 2021 12:31:00 -0600 Subject: Make extrusion-rate-variance-percent optional (0 to disable). Add HTML box drawing for pretty statistics. Separate extrusion and retraction statistics for analyzation purposes, but keep combined statistics. --- ArcWelder/unwritten_command.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'ArcWelder/unwritten_command.h') diff --git a/ArcWelder/unwritten_command.h b/ArcWelder/unwritten_command.h index 5acf999..bfca84f 100644 --- a/ArcWelder/unwritten_command.h +++ b/ArcWelder/unwritten_command.h @@ -32,9 +32,14 @@ struct unwritten_command length = 0; is_g0_g1 = false; is_g2_g3 = false; + is_travel = false; + is_extrusion = false; + is_retraction = false; + gcode = ""; + comment = ""; } - unwritten_command(parsed_command &cmd, bool is_relative, bool is_travel, double command_length) - : is_extruder_relative(is_relative), is_travel(is_travel), is_g0_g1(cmd.command == "G0" || cmd.command == "G1"), is_g2_g3(cmd.command == "G2" || cmd.command == "G3"), gcode(cmd.gcode), comment(cmd.comment), length(command_length) + unwritten_command(parsed_command &cmd, bool is_relative, bool is_extrusion, bool is_retraction, bool is_travel, double command_length) + : is_extruder_relative(is_relative), is_extrusion(is_extrusion), is_retraction(is_retraction), is_travel(is_travel), is_g0_g1(cmd.command == "G0" || cmd.command == "G1"), is_g2_g3(cmd.command == "G2" || cmd.command == "G3"), gcode(cmd.gcode), comment(cmd.comment), length(command_length) { } @@ -42,6 +47,8 @@ struct unwritten_command bool is_g2_g3; bool is_extruder_relative; bool is_travel; + bool is_extrusion; + bool is_retraction; double length; std::string gcode; std::string comment; -- cgit v1.2.3