-
-
Notifications
You must be signed in to change notification settings - Fork 7k
[STEPPER] Improvements to C++ code #7060
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
Closed
steve-weinrich
wants to merge
1
commit into
arduino:master
from
steve-weinrich:Stepper-C++-Improvements
Closed
[STEPPER] Improvements to C++ code #7060
steve-weinrich
wants to merge
1
commit into
arduino:master
from
steve-weinrich:Stepper-C++-Improvements
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@steve-weinrich
steve-weinrich
commented
Dec 29, 2017
- There are no functionality or interface changes. Just C++ improvements.
- Use a "pointer to member function" to divide "stepMotor" into discrete methods.
- Remove unnecessary use of "this".
- Add a common initialization method for use by all constructors.
- Add appropriate use of "const".
- Remove "direction" from class as it was only used in one method.
- Add "numberOfPositions" so that the "step" method does not need to test the motor type.
- Change the "motorPins" into an array to make common initialization easier.
- Use camel case variable names instead of underscores.
@facchinm
facchinm
changed the title
(削除) Improvements to C++ code (削除ここまで)
(追記) [STEPPER] Improvements to C++ code (追記ここまで)
Jan 8, 2018
Hi @steve-weinrich ,
would you mind moving the PR to https://github.com/arduino-libraries/Stepper/pulls ? Thanks
Howdy,
No problem. Do you want me to integrate the other PR’s into this? Or just certain ones? Or none?
Cheers.
From: Martino Facchin [mailto:notifications@github.com]
Sent: Monday, January 8, 2018 03:45
To: arduino/Arduino <Arduino@noreply.github.com>
Cc: steve-weinrich <weinrich.steve@gmail.com>; Mention <mention@noreply.github.com>
Subject: Re: [arduino/Arduino] [STEPPER] Improvements to C++ code (#7060)
Hi @steve-weinrich <https://github.com/steve-weinrich> ,
would you mind moving the PR to https://github.com/arduino-libraries/Stepper/pulls ? Thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#7060 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/Ag_Y2o6b6OuzAN3VxhegKA2fBsdWXKo0ks5tIfG8gaJpZM4RPThc> . <https://github.com/notifications/beacon/Ag_Y2gSv7mHA8eTnLFuNP6fKzBu2snXaks5tIfG8gaJpZM4RPThc.gif>
Feel free to create a brand new PR with all your commits included 😉
Moving to arduino-libraries
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.