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

Meadow.Foundation cleanup #435

Merged
merged 2 commits into from
Oct 19, 2022
Merged

Meadow.Foundation cleanup #435

merged 2 commits into from
Oct 19, 2022

Conversation

jorgedevs
Copy link
Collaborator

No description provided.

Copy link
Contributor

@patridge patridge left a comment

Choose a reason for hiding this comment

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

Looks good to me, though there were a pair of console output items that I wasn't sure were meant to be deleted (vs. updated).

@@ -49,8 +49,6 @@ public async Task RotateTo(Angle angle, bool stopAfterMotion = false)
// wait for completion
var rotationRequired = Math.Abs((Angle.HasValue ? Angle.Value.Degrees : 360) - angle.Degrees);
var delay = (int)(8 * rotationRequired); // estimating 8ms / degree
Console.WriteLine($"Start: {Angle?.Degrees??-1} End:={angle.Degrees}");
Copy link
Contributor

Choose a reason for hiding this comment

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

Did we need to replace these output lines with something else?

Copy link
Contributor

Choose a reason for hiding this comment

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

No we shouldn't have console writes in the drivers at all

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Correct, we only do Console.WriteLines when working on a driver, but never should make it to the driver once its available to the public.

@adrianstevens adrianstevens merged commit 0bb6bcb into develop Oct 19, 2022
@adrianstevens adrianstevens deleted the jorge-cleanup branch October 19, 2022 16:18
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.

3 participants