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
87c79d6b
Commit
87c79d6b
authored
Nov 05, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup
parent
cb954797
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
gcoder.py
printrun/gcoder.py
+7
-12
No files found.
printrun/gcoder.py
View file @
87c79d6b
...
@@ -263,21 +263,16 @@ class GCode(object):
...
@@ -263,21 +263,16 @@ class GCode(object):
if
z
is
not
None
:
current_z
=
z
if
z
is
not
None
:
current_z
=
z
elif
line
.
command
==
"G28"
:
elif
line
.
command
==
"G28"
:
if
not
any
([
line
.
x
,
line
.
y
,
line
.
z
]):
home_all
=
not
any
([
line
.
x
,
line
.
y
,
line
.
z
])
offset_x
=
offset_y
=
offset_z
=
0
if
home_all
or
line
.
x
is
not
None
:
offset_x
=
0
current_x
=
self
.
home_x
current_x
=
self
.
home_x
if
home_all
or
line
.
y
is
not
None
:
offset_y
=
0
current_y
=
self
.
home_y
current_y
=
self
.
home_y
if
home_all
or
line
.
z
is
not
None
:
offset_z
=
0
current_z
=
self
.
home_z
current_z
=
self
.
home_z
else
:
if
line
.
x
is
not
None
:
offset_x
=
0
current_x
=
self
.
home_x
if
line
.
y
is
not
None
:
offset_y
=
0
current_y
=
self
.
home_y
if
line
.
z
is
not
None
:
offset_z
=
0
current_z
=
self
.
home_z
elif
line
.
command
==
"G92"
:
elif
line
.
command
==
"G92"
:
if
line
.
x
is
not
None
:
offset_x
=
current_x
-
line
.
x
if
line
.
x
is
not
None
:
offset_x
=
current_x
-
line
.
x
...
...
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