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
60158d5e
Commit
60158d5e
authored
Mar 12, 2013
by
Francesco Santini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More implementation (still unusable)
parent
9ee7602a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
GCodeAnalyzer.py
GCodeAnalyzer.py
+14
-1
No files found.
GCodeAnalyzer.py
View file @
60158d5e
...
...
@@ -52,6 +52,12 @@ class GCodeAnalyzer():
self
.
layerZ
=
0
self
.
relative
=
False
self
.
eRelative
=
False
self
.
homeX
=
0
self
.
homeY
=
0
self
.
homeZ
=
0
self
.
maxX
=
150
self
.
maxY
=
150
self
.
maxZ
=
150
# find a code in a gstring line
...
...
@@ -109,4 +115,11 @@ class GCodeAnalyzer():
self
.
e
=
self
.
eOffset
+
e
#Repetier has a bunch of limit-checking code here and time calculations: we are leaving them for now
elif
code_g
==
28
or
code_g
==
161
:
\ No newline at end of file
elif
code_g
==
28
or
code_g
==
161
:
code_x
=
self
.
findCode
(
gcode
,
"X"
)
code_y
=
self
.
findCode
(
gcode
,
"Y"
)
code_z
=
self
.
findCode
(
gcode
,
"Z"
)
code_e
=
self
.
findCode
(
gcode
,
"E"
)
homeAll
=
False
if
code_x
==
None
and
code_y
==
None
and
code_z
==
None
:
homeAll
=
True
\ No newline at end of file
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