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
975b4593
Commit
975b4593
authored
May 16, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle N... gcodes in GCoder
parent
9a19e127
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
gcoder.py
printrun/gcoder.py
+1
-1
gviz.py
printrun/gviz.py
+0
-4
No files found.
printrun/gcoder.py
View file @
975b4593
...
@@ -47,7 +47,7 @@ class Line(object):
...
@@ -47,7 +47,7 @@ class Line(object):
if
";"
in
self
.
raw
:
if
";"
in
self
.
raw
:
self
.
raw
=
self
.
raw
.
split
(
";"
)[
0
]
.
rstrip
()
self
.
raw
=
self
.
raw
.
split
(
";"
)[
0
]
.
rstrip
()
self
.
split_raw
=
self
.
raw
.
split
(
" "
)
self
.
split_raw
=
self
.
raw
.
split
(
" "
)
self
.
command
=
self
.
split_raw
[
0
]
.
upper
()
self
.
command
=
self
.
split_raw
[
0
]
.
upper
()
if
not
self
.
split_raw
[
0
]
.
startswith
(
"n"
)
else
self
.
split_raw
[
1
]
self
.
is_move
=
self
.
command
in
[
"G0"
,
"G1"
]
self
.
is_move
=
self
.
command
in
[
"G0"
,
"G1"
]
def
parse_coordinates
(
self
,
imperial
):
def
parse_coordinates
(
self
,
imperial
):
...
...
printrun/gviz.py
View file @
975b4593
...
@@ -371,10 +371,6 @@ class gviz(wx.Panel):
...
@@ -371,10 +371,6 @@ class gviz(wx.Panel):
return
return
gline
=
gcoder
.
Line
(
gcode
)
gline
=
gcoder
.
Line
(
gcode
)
gline
.
parse_coordinates
(
False
)
gline
.
parse_coordinates
(
False
)
# FIXME by iXce : I commented this code out as I have no clue what it does,
# but it should be looked at
#if gcode[0][0] == 'n': # not sure what this check is for ?
# gcode.pop(0)
def
_y
(
y
):
def
_y
(
y
):
return
self
.
build_dimensions
[
1
]
-
(
y
-
self
.
build_dimensions
[
4
])
return
self
.
build_dimensions
[
1
]
-
(
y
-
self
.
build_dimensions
[
4
])
...
...
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