-
Notifications
You must be signed in to change notification settings - Fork 1
Javadoc formatting #118
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
Merged
Merged
Javadoc formatting #118
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
fb1d391
Javadoc formatting
SpectrumFRC3847 999842a
uncommit failOnError = false
SpectrumFRC3847 15416f0
Update src/main/java/frc/spectrumLib/vision/LimelightHelpers.java
SpectrumFRC3847 126557a
Update src/main/java/frc/reefscape/FieldHelpers.java
SpectrumFRC3847 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| org.gradle.caching=true |
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,7 +39,7 @@ | |
| /** | ||
| * Control Modes Docs: | ||
| * https://pro.docs.ctr-electronics.com/en/latest/docs/migration/migration-guide/control-requests-guide.html | ||
| * Closed-loop & Motion Magic Docs: | ||
| * Closed-loop and Motion Magic Docs: | ||
| * https://pro.docs.ctr-electronics.com/en/latest/docs/migration/migration-guide/closed-loop-guide.html | ||
| */ | ||
| public abstract class Mechanism implements NTSendable, SpectrumSubsystem { | ||
|
|
@@ -232,7 +232,7 @@ public Trigger aboveCurrent(DoubleSupplier target, DoubleSupplier tolerance) { | |
| /** | ||
| * Update the value of the stator current for the motor | ||
| * | ||
| * @return | ||
| * @return The current stator current value in amps | ||
| */ | ||
| public double updateCurrent() { | ||
| if (config.attached) { | ||
|
|
@@ -259,7 +259,8 @@ public double getVoltage() { | |
| /** | ||
| * Percentage to Rotations | ||
| * | ||
| * @return | ||
| * @param percent The percentage value supplier | ||
| * @return The equivalent rotation count | ||
| */ | ||
| public double percentToRotations(DoubleSupplier percent) { | ||
| return (percent.getAsDouble() / 100) * config.maxRotations; | ||
|
|
@@ -268,8 +269,8 @@ public double percentToRotations(DoubleSupplier percent) { | |
| /** | ||
| * Rotations to Percentage | ||
| * | ||
| * @param rotations | ||
| * @return | ||
| * @param rotations The rotation count supplier | ||
| * @return The equivalent percentage value | ||
| */ | ||
| public double rotationsToPercent(DoubleSupplier rotations) { | ||
| return (rotations.getAsDouble() / config.maxRotations) * 100; | ||
|
|
@@ -361,8 +362,8 @@ public Command runVelocity(DoubleSupplier velocityRPM) { | |
| /** | ||
| * Run the mechanism at given velocity rpm in TorqueCurrentFOC mode | ||
| * | ||
| * @param velocityRPM | ||
| * @return | ||
| * @param velocityRPM The target velocity in RPM | ||
| * @return Command that runs the mechanism at the specified velocity | ||
| */ | ||
| public Command runVelocityTcFocRpm(DoubleSupplier velocityRPM) { | ||
| return run(() -> setVelocityTorqueCurrentFOC(() -> Conversions.RPMtoRPS(velocityRPM))) | ||
|
|
@@ -509,7 +510,7 @@ protected void setVelocityTorqueCurrentFOC(DoubleSupplier velocityRPS) { | |
| /** | ||
| * Closed-loop Velocity with torque control (requires Pro) | ||
| * | ||
| * @param velocity rotations per second | ||
| * @param velocityRPS rotations per second | ||
|
||
| */ | ||
| protected void setVelocityTCFOCrpm(DoubleSupplier velocityRPS) { | ||
| if (isAttached()) { | ||
|
|
||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parameter name mismatch: the constructor parameter is
anglebut the Javadoc refers toangleDegrees. The documentation should match the actual parameter name.