Prototype for exporting estimated remaining time into gcode for default and silent mode

This commit is contained in:
Enrico Turri 2018-05-30 12:08:03 +02:00
parent e4aff5b08a
commit 5a8d1ffdba
7 changed files with 377 additions and 126 deletions

View file

@ -133,6 +133,8 @@ public:
m_last_height(GCodeAnalyzer::Default_Height),
m_brim_done(false),
m_second_layer_things_done(false),
m_default_time_estimator(GCodeTimeEstimator::Default),
m_silent_time_estimator(GCodeTimeEstimator::Silent),
m_last_obj_copy(nullptr, Point(std::numeric_limits<coord_t>::max(), std::numeric_limits<coord_t>::max()))
{}
~GCode() {}
@ -289,8 +291,9 @@ protected:
// Index of a last object copy extruded.
std::pair<const PrintObject*, Point> m_last_obj_copy;
// Time estimator
GCodeTimeEstimator m_time_estimator;
// Time estimators
GCodeTimeEstimator m_default_time_estimator;
GCodeTimeEstimator m_silent_time_estimator;
// Analyzer
GCodeAnalyzer m_analyzer;