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
92821f7e
Commit
92821f7e
authored
Jan 13, 2013
by
kliment
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #317 from sivu/experimental
gcoder updated
parents
917256f9
aa1e576a
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 @
92821f7e
...
@@ -94,21 +94,36 @@ class Line(object):
...
@@ -94,21 +94,36 @@ class Line(object):
return
None
return
None
def
_parse_coordinates
(
self
):
def
_parse_coordinates
(
self
):
if
"X"
in
self
.
raw
:
try
:
self
.
_x
=
self
.
_get_float
(
"X"
)
if
"X"
in
self
.
raw
:
self
.
_x
=
self
.
_get_float
(
"X"
)
if
"Y"
in
self
.
raw
:
except
:
self
.
_y
=
self
.
_get_float
(
"Y"
)
pass
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
"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
):
def
is_move
(
self
):
return
self
.
command
()
and
(
"G1"
in
self
.
raw
or
"G0"
in
self
.
raw
)
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