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:
Diffstat (limited to 'ArcWelder/unwritten_command.h')
-rw-r--r--ArcWelder/unwritten_command.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ArcWelder/unwritten_command.h b/ArcWelder/unwritten_command.h
index 0bfea2d..8f85a50 100644
--- a/ArcWelder/unwritten_command.h
+++ b/ArcWelder/unwritten_command.h
@@ -32,22 +32,27 @@ struct unwritten_command
e_relative = 0;
offset_e = 0;
extrusion_length = 0;
+ is_g1_g2 = false;
}
unwritten_command(parsed_command &cmd, bool is_relative, double command_length) {
is_extruder_relative = is_relative;
+ is_g1_g2 = cmd.command == "G0" || cmd.command == "G1";
gcode = cmd.gcode;
comment = cmd.comment;
extrusion_length = command_length;
}
+ /*
unwritten_command(position* p, double command_length) {
e_relative = p->get_current_extruder().e_relative;
offset_e = p->get_current_extruder().get_offset_e();
is_extruder_relative = p->is_extruder_relative;
+ is_g1_g2 = p->command.command == "G0" || p->command.command == "G1";
gcode = p->command.gcode;
comment = p->command.comment;
extrusion_length = command_length;
- }
+ } */
+ bool is_g1_g2;
bool is_extruder_relative;
double e_relative;
double offset_e;