mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Time estimate uses G1 lines containing E parameter for remaining time calculations
This commit is contained in:
parent
7ff22b9413
commit
9725966f38
2 changed files with 9 additions and 55 deletions
|
@ -134,16 +134,6 @@ namespace Slic3r {
|
|||
bool nominal_length;
|
||||
};
|
||||
|
||||
//#################################################################################################################
|
||||
struct Time
|
||||
{
|
||||
float elapsed;
|
||||
float remaining;
|
||||
|
||||
Time();
|
||||
};
|
||||
//#################################################################################################################
|
||||
|
||||
#if ENABLE_MOVE_STATS
|
||||
EMoveType move_type;
|
||||
#endif // ENABLE_MOVE_STATS
|
||||
|
@ -157,7 +147,7 @@ namespace Slic3r {
|
|||
FeedrateProfile feedrate;
|
||||
Trapezoid trapezoid;
|
||||
//#################################################################################################################
|
||||
Time time;
|
||||
float elapsed_time;
|
||||
unsigned int g1_line_id;
|
||||
//#################################################################################################################
|
||||
|
||||
|
@ -189,10 +179,6 @@ namespace Slic3r {
|
|||
// Calculates this block's trapezoid
|
||||
void calculate_trapezoid();
|
||||
|
||||
//#################################################################################################################
|
||||
void calculate_remaining_time(float final_time);
|
||||
//#################################################################################################################
|
||||
|
||||
// Calculates the maximum allowable speed at this point when you must be able to reach target_velocity using the
|
||||
// acceleration within the allotted distance.
|
||||
static float max_allowable_speed(float acceleration, float target_velocity, float distance);
|
||||
|
@ -362,10 +348,6 @@ namespace Slic3r {
|
|||
// Calculates the time estimate
|
||||
void _calculate_time();
|
||||
|
||||
//#################################################################################################################
|
||||
void _calculate_remaining_times();
|
||||
//#################################################################################################################
|
||||
|
||||
// Processes the given gcode line
|
||||
void _process_gcode_line(GCodeReader&, const GCodeReader::GCodeLine& line);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue