Skip to content

Improve ServoMotorHelper Javadocs - #490

Merged
leandrumartin merged 3 commits into
developfrom
245-improve-javadoc-documentation-for-servomotorhelper-class
Jun 13, 2026
Merged

Improve ServoMotorHelper Javadocs#490
leandrumartin merged 3 commits into
developfrom
245-improve-javadoc-documentation-for-servomotorhelper-class

Conversation

@leandrumartin

Copy link
Copy Markdown
Collaborator

Pull Request Summary

Closes #245

A brief description/summary of your PR. What does it add, and why is it necessary? Does this new feature solve any problems or bugs? How was it tested — automated or manual software tests, physical hardware tests, or some other method or combination of testing techniques?

Clarify current behavior by mentioning side effects, making links as appropriate, and mentioning exceptions thrown.

PR Checklist

  • Tests pass
  • Any related documentation has been updated, if necessary

Detailed Description

A more detailed description and any additional information.

Clarify current behavior by mentioning side effects, making links as appropriate, and mentioning exceptions thrown.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to improve the Javadoc for ServoMotorHelper by clarifying behavior (PWM startup/shutdown semantics, angle bounds handling, and the post-update delay) and by documenting potential side effects/exceptions as requested in issue #245.

Changes:

  • Expanded Javadocs for enable(), disable(), and setAngle(int) to better describe runtime behavior and side effects.
  • Added @throws IOException documentation (and an associated import) for PWM operations.
  • Minor Javadoc formatting improvement for setLog(...) by using {@code ...}.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

leandrumartin and others added 2 commits June 13, 2026 17:20
Remove @throws tags because those exceptions are not declared, and because we don't want to declare them; doing so would be inconsistent within the repository.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Leandru Martin <122942864+leandrumartin@users.noreply.github.com>
@leandrumartin
leandrumartin merged commit 3cd10d0 into develop Jun 13, 2026
7 checks passed
@leandrumartin
leandrumartin deleted the 245-improve-javadoc-documentation-for-servomotorhelper-class branch June 13, 2026 22:26
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.

Improve Javadoc Documentation for ServoMotorHelper Class

2 participants