Time estimate emitted to gcode at requested interval

This commit is contained in:
Enrico Turri 2018-06-27 15:35:47 +02:00
parent de28d4edeb
commit 7ff22b9413
8 changed files with 544 additions and 137 deletions

View file

@ -133,7 +133,10 @@ public:
m_last_height(GCodeAnalyzer::Default_Height),
m_brim_done(false),
m_second_layer_things_done(false),
m_default_time_estimator(GCodeTimeEstimator::Default),
//############################################################################################################3
m_normal_time_estimator(GCodeTimeEstimator::Normal),
// m_default_time_estimator(GCodeTimeEstimator::Default),
//############################################################################################################3
m_silent_time_estimator(GCodeTimeEstimator::Silent),
m_silent_time_estimator_enabled(false),
m_last_obj_copy(nullptr, Point(std::numeric_limits<coord_t>::max(), std::numeric_limits<coord_t>::max()))
@ -293,7 +296,10 @@ protected:
std::pair<const PrintObject*, Point> m_last_obj_copy;
// Time estimators
GCodeTimeEstimator m_default_time_estimator;
//############################################################################################################3
GCodeTimeEstimator m_normal_time_estimator;
// GCodeTimeEstimator m_default_time_estimator;
//############################################################################################################3
GCodeTimeEstimator m_silent_time_estimator;
bool m_silent_time_estimator_enabled;