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
ea307f3b
Commit
ea307f3b
authored
Nov 04, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More work towards the merging of GCodeAnalyzer and GCoder
parent
3b30537b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
16 deletions
+7
-16
GCodeAnalyzer.py
printrun/GCodeAnalyzer.py
+7
-16
No files found.
printrun/GCodeAnalyzer.py
View file @
ea307f3b
...
@@ -70,25 +70,16 @@ class GCodeAnalyzer():
...
@@ -70,25 +70,16 @@ class GCodeAnalyzer():
if
gline
.
f
is
not
None
:
if
gline
.
f
is
not
None
:
self
.
f
=
gline
.
f
self
.
f
=
gline
.
f
if
self
.
gcoder
.
relative
:
if
gline
.
current_x
is
not
None
:
self
.
x
=
gline
.
current_x
if
gline
.
x
is
not
None
:
self
.
x
+=
gline
.
x
if
gline
.
current_y
is
not
None
:
self
.
y
=
gline
.
current_y
if
gline
.
y
is
not
None
:
self
.
y
+=
gline
.
y
if
gline
.
current_z
is
not
None
:
self
.
z
=
gline
.
current_z
if
gline
.
z
is
not
None
:
self
.
z
+=
gline
.
z
if
self
.
gcoder
.
relative
and
gline
.
e
:
if
gline
.
e
is
not
None
:
if
gline
.
e
!=
0
:
self
.
e
+=
gline
.
e
self
.
e
+=
gline
.
e
else
:
else
:
# absolute coordinates
if
gline
.
x
is
not
None
:
self
.
x
=
self
.
xOffset
+
gline
.
x
if
gline
.
y
is
not
None
:
self
.
y
=
self
.
yOffset
+
gline
.
y
if
gline
.
z
is
not
None
:
self
.
z
=
self
.
zOffset
+
gline
.
z
if
gline
.
e
is
not
None
:
if
gline
.
e
is
not
None
:
if
self
.
gcoder
.
relative_e
:
if
self
.
gcoder
.
relative_e
:
if
gline
.
e
!=
0
:
self
.
e
+=
gline
.
e
self
.
e
+=
gline
.
e
else
:
else
:
# e is absolute. Is it changed?
if
self
.
e
!=
self
.
eOffset
+
gline
.
e
:
self
.
e
=
self
.
eOffset
+
gline
.
e
self
.
e
=
self
.
eOffset
+
gline
.
e
elif
code_g
==
28
or
code_g
==
161
:
elif
code_g
==
28
or
code_g
==
161
:
homeAll
=
False
homeAll
=
False
...
...
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