Skip to content

Add API to get the applied current of a motor - #33

Merged
cuttestkittensrule merged 7 commits into
mainfrom
kyle/add-current-api
Jul 3, 2025
Merged

Add API to get the applied current of a motor#33
cuttestkittensrule merged 7 commits into
mainfrom
kyle/add-current-api

Conversation

@cuttestkittensrule

Copy link
Copy Markdown
Collaborator
  • add Current getAppliedCurrent() to Motor to allow getting the applied current of a motor
    • Documented that it may throw UnsupportedOperationException because we might add a new motor that does not allow you to get the current of a motor in the future (this could be removed)
  • implement Current getAppliedCurrent() for all current implemented motors

@cuttestkittensrule cuttestkittensrule added the enhancement New feature or request label Mar 17, 2025
Comment thread lib/src/main/java/com/team2813/lib2813/control/Motor.java Outdated
*
* @return The current applied current
*/
Current getAppliedCurrent();

@kcooney kcooney Apr 30, 2025

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.

Note that this isn't a backwards-compatible change. Since the version of 'lib' specified in build.gradle is "1.3.0-alpha.1" I'm guessing that's okay with you.

Optional: Perhaps add @since 1.3.0 to the Javadoc?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Since it is backwards incompatible, shouldn't we bump the major version?
I could change the build.gradle version to 2.0.0-alpha.1, so that the next release is 2.0.0

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.

Since it is backwards incompatible, shouldn't we bump the major version?

If you want to follow the recommendations at https://semver.org/ then yes. You don't have to (JUnit didn't).

@cuttestkittensrule
cuttestkittensrule merged commit 578308c into main Jul 3, 2025
1 check passed
@cuttestkittensrule
cuttestkittensrule deleted the kyle/add-current-api branch July 3, 2025 21:44
kcooney added a commit to Prospect-Robotics/Robot2025 that referenced this pull request Aug 23, 2025
kcooney added a commit to Prospect-Robotics/Robot2025 that referenced this pull request Aug 23, 2025
kcooney added a commit to Prospect-Robotics/Robot2025 that referenced this pull request Sep 4, 2025
kcooney added a commit to Prospect-Robotics/Robot2025 that referenced this pull request Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants