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
ca5e7f11
Commit
ca5e7f11
authored
Nov 04, 2011
by
Steven Devijver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Divide feedrate by 60 seconds
parent
321548a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
duration.py
duration.py
+3
-3
No files found.
duration.py
View file @
ca5e7f11
...
...
@@ -31,9 +31,9 @@ for i in g:
feedrate
=
0
if
(
F
is
None
):
feedrate
=
global_feedrate
feedrate
=
global_feedrate
/
60
else
:
feedrate
=
F
feedrate
=
F
/
60
distance
=
0
if
(
X
is
not
None
and
Y
is
None
):
...
...
@@ -49,7 +49,7 @@ for i in g:
X_last_position
=
X
Y_last_position
=
Y
time_for_move
=
distance
/
(
feedrate
/
60
)
time_for_move
=
distance
/
feedrate
acceleration
=
(
feedrate
-
initial_feedrate
)
/
time_for_move
halfway_feedrate
=
initial_feedrate
+
acceleration
*
time_for_move
/
2
...
...
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