1st installment of export to gcode of M73 lines for remaining time to next printer stop

This commit is contained in:
enricoturri1966 2021-03-23 09:05:52 +01:00
parent a618bfe078
commit 6ffa51da58
3 changed files with 116 additions and 0 deletions

View file

@ -253,7 +253,18 @@ namespace Slic3r {
float max_acceleration; // mm/s^2
float extrude_factor_override_percentage;
float time; // s
#if ENABLE_EXTENDED_M73_LINES
struct StopTime
{
unsigned int g1_line_id;
float elapsed_time;
};
std::vector<StopTime> stop_times;
std::string line_m73_main_mask;
std::string line_m73_stop_mask;
#else
std::string line_m73_mask;
#endif // ENABLE_EXTENDED_M73_LINES
State curr;
State prev;
CustomGCodeTime gcode_time;