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
aa1e576a
Commit
aa1e576a
authored
Jan 13, 2013
by
Mikko Sivulainen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gcoder updated
parent
917256f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
14 deletions
+29
-14
gcoder.py
gcoder.py
+29
-14
No files found.
gcoder.py
View file @
aa1e576a
...
...
@@ -94,21 +94,36 @@ class Line(object):
return
None
def
_parse_coordinates
(
self
):
if
"X"
in
self
.
raw
:
self
.
_x
=
self
.
_get_float
(
"X"
)
if
"Y"
in
self
.
raw
:
self
.
_y
=
self
.
_get_float
(
"Y"
)
if
"Z"
in
self
.
raw
:
self
.
_z
=
self
.
_get_float
(
"Z"
)
if
"E"
in
self
.
raw
:
self
.
e
=
self
.
_get_float
(
"E"
)
if
"F"
in
self
.
raw
:
self
.
f
=
self
.
_get_float
(
"F"
)
try
:
if
"X"
in
self
.
raw
:
self
.
_x
=
self
.
_get_float
(
"X"
)
except
:
pass
try
:
if
"Y"
in
self
.
raw
:
self
.
_y
=
self
.
_get_float
(
"Y"
)
except
:
pass
try
:
if
"Z"
in
self
.
raw
:
self
.
_z
=
self
.
_get_float
(
"Z"
)
except
:
pass
try
:
if
"E"
in
self
.
raw
:
self
.
e
=
self
.
_get_float
(
"E"
)
except
:
pass
try
:
if
"F"
in
self
.
raw
:
self
.
f
=
self
.
_get_float
(
"F"
)
except
:
pass
def
is_move
(
self
):
return
self
.
command
()
and
(
"G1"
in
self
.
raw
or
"G0"
in
self
.
raw
)
...
...
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