Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If zEncoderSteps is negative, use that same sign in G38.2 gcode #464

Conversation

blurfl
Copy link
Collaborator

@blurfl blurfl commented Sep 26, 2018

Make G38.2 aware of inverted z axis motion.
Some non-stock z motors reverse the motor and encoder leads. Some users accomodate this by making the GC setting "Z-Axis Encoder Steps per Revolution" negative. This commit uses the sign of that 'sysSettings.zEncoderSteps' firmware setting to adjust the direction of travel inGcode.cpp:G38().

Make G38.2 aware of inverted z axis motion.
 Some non-stock z motors reverse the motor and encoder leads. Some users accomodate this by making the GC setting "Z-Axis Encoder Steps per Revolution" negative. This commit uses the sign of that 'sysSettings.zEncoderSteps' firmware setting to adjust the direction of travel inGcode.cpp:G38().
@MaslowCommunityGardenRobot
Copy link
Collaborator

Congratulations on the pull request @blurfl

Now we need to decide as a community if we want to integrate these changes. Vote by giving this comment a thumbs up or a thumbs down. Votes are counted in 48 hours. Ties will not be merged.

I'm just a robot, but I love to see people contributing so I'm going vote thumbs up!

@MaslowCommunityGardenRobot
Copy link
Collaborator

Time is up and we're ready to merge this pull request. Great work!

@MaslowCommunityGardenRobot MaslowCommunityGardenRobot merged commit 54a517b into MaslowCNC:master Sep 28, 2018
@blurfl blurfl deleted the fix-G38.2-for-reversed-z-motor- branch June 22, 2019 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants