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

Move many default property values to header file #3

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

DarioGHub
Copy link
Contributor

Leave cpp file with fewer lines, and attempt to make the examples more understandable for users.

import -> include, add step_count calc
Added call to update, renamed dt to steps, step_count now calculated, a few wiring notes, and some serial output.
Rename dt -> steps, step_count now calculated
loopCallback() was not reached if entered update() with repeat=1; repeat-- resulted in update returning.
Constructors contained repeated assignments; moved them to the header file. Constructors with >2 params update the property values.
Moved majority of default property value assignments here from constructors in cpp.
Readability: function pointers assigned nullptr in place of 0.
@DarioGHub DarioGHub changed the title Move most default property values to header Move many default property values to header file Nov 15, 2022
@DarioGHub DarioGHub marked this pull request as ready for review November 15, 2022 04:34
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.

1 participant