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
3e06eb74
Commit
3e06eb74
authored
Dec 11, 2011
by
Kliment Yanev
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into experimental
parents
01c09c5f
863a6419
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
pronsole.py
pronsole.py
+6
-5
No files found.
pronsole.py
View file @
3e06eb74
...
@@ -102,11 +102,11 @@ def estimate_duration(g):
...
@@ -102,11 +102,11 @@ def estimate_duration(g):
acceleration
=
1500.0
#mm/s/s ASSUMING THE DEFAULT FROM SPRINTER !!!!
acceleration
=
1500.0
#mm/s/s ASSUMING THE DEFAULT FROM SPRINTER !!!!
layerduration
=
0.0
layerduration
=
0.0
layerbeginduration
=
0.0
layerbeginduration
=
0.0
layercount
=
0
#TODO:
#TODO:
# get device caps from firmware: max speed, acceleration/axis (including extruder)
# get device caps from firmware: max speed, acceleration/axis (including extruder)
# calculate the maximum move duration accounting for above ;)
# calculate the maximum move duration accounting for above ;)
print
".... estimating ...."
# print ".... estimating ...."
for
i
in
g
:
for
i
in
g
:
i
=
i
.
split
(
";"
)[
0
]
i
=
i
.
split
(
";"
)[
0
]
if
"G4"
in
i
or
"G1"
in
i
:
if
"G4"
in
i
or
"G1"
in
i
:
...
@@ -147,7 +147,8 @@ def estimate_duration(g):
...
@@ -147,7 +147,8 @@ def estimate_duration(g):
totalduration
+=
moveduration
totalduration
+=
moveduration
if
z
>
lastz
:
if
z
>
lastz
:
print
"layer z: "
,
lastz
,
" will take: "
,
time
.
strftime
(
'
%
H:
%
M:
%
S'
,
time
.
gmtime
(
totalduration
-
layerbeginduration
))
layercount
+=
1
#print "layer z: ", lastz, " will take: ", time.strftime('%H:%M:%S', time.gmtime(totalduration-layerbeginduration))
layerbeginduration
=
totalduration
layerbeginduration
=
totalduration
lastx
=
x
lastx
=
x
...
@@ -156,8 +157,8 @@ def estimate_duration(g):
...
@@ -156,8 +157,8 @@ def estimate_duration(g):
laste
=
e
laste
=
e
lastf
=
f
lastf
=
f
print
"Total Duration: "
#, time.strftime('%H:%M:%S', time.gmtime(totalduration))
#
print "Total Duration: " #, time.strftime('%H:%M:%S', time.gmtime(totalduration))
return
time
.
strftime
(
'
%
H:
%
M:
%
S'
,
time
.
gmtime
(
totalduration
))
return
"{0:d} layers, "
.
format
(
int
(
layercount
))
+
time
.
strftime
(
'
%
H:
%
M:
%
S'
,
time
.
gmtime
(
totalduration
))
class
Settings
:
class
Settings
:
#def _temperature_alias(self): return {"pla":210,"abs":230,"off":0}
#def _temperature_alias(self): return {"pla":210,"abs":230,"off":0}
...
...
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