Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
262b000f
Commit
262b000f
authored
Nov 04, 2011
by
Steven Devijver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed initial_feedrate, isn't used anyways, will only confuse people
parent
80a1301b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
pronsole.py
pronsole.py
+3
-4
No files found.
pronsole.py
View file @
262b000f
...
@@ -91,7 +91,6 @@ def get_coordinate_value(axis, parts):
...
@@ -91,7 +91,6 @@ def get_coordinate_value(axis, parts):
def
estimate_duration
(
g
):
def
estimate_duration
(
g
):
extra_cost_per_movement
=
0.02
extra_cost_per_movement
=
0.02
total_duration
=
0
total_duration
=
0
initial_feedrate
=
0
feedrate
=
0
feedrate
=
0
X_last_position
=
0
X_last_position
=
0
Y_last_position
=
0
Y_last_position
=
0
...
@@ -125,9 +124,9 @@ def estimate_duration(g):
...
@@ -125,9 +124,9 @@ def estimate_duration(g):
if
(
feedrate
==
0
or
distance
==
0
):
continue
if
(
feedrate
==
0
or
distance
==
0
):
continue
time_for_move
=
distance
/
feedrate
time_for_move
=
distance
/
feedrate
acceleration
=
(
feedrate
-
initial_feedrate
)
/
time_for_move
acceleration
=
feedrate
/
time_for_move
halfway_feedrate
=
initial_feedrate
+
acceleration
*
time_for_move
/
2
halfway_feedrate
=
acceleration
*
time_for_move
/
2
duration
=
(
halfway_feedrate
*
2
-
initial_feedrate
)
/
acceleration
duration
=
halfway_feedrate
*
2
/
acceleration
total_duration
+=
duration
+
extra_cost_per_movement
total_duration
+=
duration
+
extra_cost_per_movement
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment