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
80a1301b
Commit
80a1301b
authored
Nov 04, 2011
by
Steven Devijver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified duration calculation, acceleration calculation is not realistic anyways
parent
e89eba8c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
pronsole.py
pronsole.py
+1
-9
No files found.
pronsole.py
View file @
80a1301b
...
@@ -126,15 +126,7 @@ def estimate_duration(g):
...
@@ -126,15 +126,7 @@ def estimate_duration(g):
time_for_move
=
distance
/
feedrate
time_for_move
=
distance
/
feedrate
acceleration
=
(
feedrate
-
initial_feedrate
)
/
time_for_move
acceleration
=
(
feedrate
-
initial_feedrate
)
/
time_for_move
halfway_feedrate
=
initial_feedrate
+
acceleration
*
time_for_move
/
2
halfway_feedrate
=
initial_feedrate
+
acceleration
*
time_for_move
/
2
duration
=
0
if
(
halfway_feedrate
==
feedrate
):
time_full_feedrate
=
(
feedrate
-
initial_feedrate
)
/
acceleration
distance_full_feedrate
=
(
0.5
*
(
feedrate
+
initial_feedrate
))
*
time_full_feedrate
duration
=
time_full_feedrate
*
2
+
(
distance
-
distance_full_feedrate
*
2
)
/
feedrate
else
:
duration
=
(
halfway_feedrate
*
2
-
initial_feedrate
)
/
acceleration
duration
=
(
halfway_feedrate
*
2
-
initial_feedrate
)
/
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