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
e425728a
Commit
e425728a
authored
Nov 04, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store current_e in gcoder.GCode
parent
f6488673
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
gcoder.py
printrun/gcoder.py
+4
-1
No files found.
printrun/gcoder.py
View file @
e425728a
...
@@ -112,6 +112,7 @@ class GCode(object):
...
@@ -112,6 +112,7 @@ class GCode(object):
current_x
=
0
current_x
=
0
current_y
=
0
current_y
=
0
current_z
=
0
current_z
=
0
current_e
=
0
offset_x
=
0
offset_x
=
0
offset_y
=
0
offset_y
=
0
offset_z
=
0
offset_z
=
0
...
@@ -246,10 +247,11 @@ class GCode(object):
...
@@ -246,10 +247,11 @@ class GCode(object):
self
.
offset_y
=
offset_y
self
.
offset_y
=
offset_y
self
.
offset_z
=
offset_z
self
.
offset_z
=
offset_z
def
_preprocess_extrusion
(
self
,
lines
=
None
,
cur_e
=
0
):
def
_preprocess_extrusion
(
self
,
lines
=
None
):
if
not
lines
:
if
not
lines
:
lines
=
self
.
lines
lines
=
self
.
lines
cur_e
=
self
.
current_e
total_e
=
0
total_e
=
0
max_e
=
0
max_e
=
0
...
@@ -268,6 +270,7 @@ class GCode(object):
...
@@ -268,6 +270,7 @@ class GCode(object):
elif
line
.
command
==
"G92"
:
elif
line
.
command
==
"G92"
:
cur_e
=
line
.
e
cur_e
=
line
.
e
self
.
current_e
=
cur_e
return
max_e
return
max_e
# FIXME : looks like this needs to be tested with list Z on move
# FIXME : looks like this needs to be tested with list Z on 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