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

Adjust encoderStep defaults #468

Merged

Conversation

johnboiles
Copy link
Contributor

@madgrizzle will have to chime in on the justification for this change. I just pulled it from his development branch!

@MaslowCommunityGardenRobot
Copy link
Collaborator

Congratulations on the pull request @johnboiles

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!

@madgrizzle
Copy link
Contributor

This change came about while trying to figure out why the B02 command is not working properly. The "correct" value for encoder steps is 8113.73 (based upon work from a long while back). In firmware, the default value was 8113.7 and in GC, the default value is 8113.73. GC updates the firmware to set it to 8113.73. However, during troubleshooting the B02 command, I corrected the default value in FW to be 8113.73. It's an innocuous change.

@@ -125,7 +125,7 @@ void MotorGearboxEncoder::setEncoderResolution(float resolution){

*/

_encoderStepsToRPMScaleFactor = 60000000.0/resolution; //6*10^7 us per minute divided by 8113.7 steps per revolution
_encoderStepsToRPMScaleFactor = 60000000.0/resolution; //6*10^7 us per minute divided by 8113.73 steps per revolution
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the time to update the comment too

@MaslowCommunityGardenRobot
Copy link
Collaborator

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

@MaslowCommunityGardenRobot MaslowCommunityGardenRobot merged commit 71bb079 into MaslowCNC:master Oct 18, 2018
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.

4 participants