GCodeGenerator / custom G-codes: Added new read/only options providing

the amount of total extruded material and per extruder extruded material
up to the point the value is evaluated:
"extruded_volume", "extruded_weight",
"extruded_volume_total", "extruded_weight_total"
This commit is contained in:
Vojtech Bubnik 2023-03-30 10:36:23 +02:00 committed by SoftFever
parent 05194ab1f4
commit 0c3802ac4c
5 changed files with 249 additions and 54 deletions

View file

@ -76,7 +76,8 @@ public:
std::string lift(LiftType lift_type = LiftType::NormalLift, bool spiral_vase = false);
std::string unlift();
Vec3d get_position() const { return m_pos; }
void set_position(Vec3d& in) { m_pos = in; }
void set_position(const Vec3d& in) { m_pos = in; }
double get_zhop() const { return m_lifted; }
//BBS: set offset for gcode writer
void set_xy_offset(double x, double y) { m_x_offset = x; m_y_offset = y; }