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
05003322
Commit
05003322
authored
Nov 04, 2011
by
Steven Devijver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also take forward movement after retraction into account
parent
0bff3c93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
pronsole.py
pronsole.py
+2
-3
No files found.
pronsole.py
View file @
05003322
...
@@ -114,7 +114,7 @@ def estimate_duration(g):
...
@@ -114,7 +114,7 @@ def estimate_duration(g):
feedrate
=
F
/
60
feedrate
=
F
/
60
distance
=
0
distance
=
0
if
(
X
is
None
and
Y
is
None
and
E
is
not
None
and
E
<
0.0
):
if
(
X
is
None
and
Y
is
None
and
E
is
not
None
):
distance
=
abs
(
E
)
distance
=
abs
(
E
)
elif
(
X
is
not
None
and
Y
is
None
):
elif
(
X
is
not
None
and
Y
is
None
):
distance
=
X
-
X_last_position
distance
=
X
-
X_last_position
...
@@ -128,9 +128,8 @@ def estimate_duration(g):
...
@@ -128,9 +128,8 @@ def estimate_duration(g):
distance
=
sqrt
(
X_distance
*
X_distance
+
Y_distance
*
Y_distance
)
distance
=
sqrt
(
X_distance
*
X_distance
+
Y_distance
*
Y_distance
)
X_last_position
=
X
X_last_position
=
X
Y_last_position
=
Y
Y_last_position
=
Y
else
:
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
-
initial_feedrate
)
/
time_for_move
...
...
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