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
cf37571a
Commit
cf37571a
authored
Nov 05, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation to GCoder about coordinate systems (#444)
parent
ea307f3b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
gcoder.py
printrun/gcoder.py
+10
-0
No files found.
printrun/gcoder.py
View file @
cf37571a
...
@@ -109,13 +109,23 @@ class GCode(object):
...
@@ -109,13 +109,23 @@ class GCode(object):
relative
=
False
relative
=
False
relative_e
=
False
relative_e
=
False
current_tool
=
0
current_tool
=
0
# Current position: current absolute position counted from machine origin
current_x
=
0
current_x
=
0
current_y
=
0
current_y
=
0
current_z
=
0
current_z
=
0
current_e
=
0
current_e
=
0
# Offset: current offset between the machine origin and the machine current
# absolute coordinate system (as shifted by G92s)
offset_x
=
0
offset_x
=
0
offset_y
=
0
offset_y
=
0
offset_z
=
0
offset_z
=
0
# Expected behavior:
# - G28 X => X axis is homed, offset_x <- 0, current_x <- home_x
# - G92 Xk => X axis does not move, offset_x <- current_x - k,
# current_x does not change
# How to get...
# current abs X from machine origin: current_x
# current abs X in machine current coordinate system: current_x - offset_x
filament_length
=
None
filament_length
=
None
xmin
=
None
xmin
=
None
...
...
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