-
Notifications
You must be signed in to change notification settings - Fork 1
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
Make arm match #50
Make arm match #50
Conversation
📝 WalkthroughWalkthroughThe changes update method names, parameter names, and documentation in the Arm and Flywheel subsystems to use "mode" terminology instead of "position" or "velocity." In the Arm class, methods such as Changes
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/main/java/frc/robot/subsystems/arm/Arm.java (1)
184-188
: Consider renaming method for full consistency.While the documentation has been updated to use "mode" terminology, consider renaming
setPositionCommand
tosetModeCommand
for complete consistency with the new terminology.- private Command setPositionCommand(ArmMode mode) { + private Command setModeCommand(ArmMode mode) {Don't forget to update all references to this method in the factory methods (L1(), L2(), etc.).
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
src/main/java/frc/robot/subsystems/arm/Arm.java
(2 hunks)src/main/java/frc/robot/subsystems/flywheel/Flywheel.java
(1 hunks)
🔇 Additional comments (4)
src/main/java/frc/robot/subsystems/flywheel/Flywheel.java (1)
181-181
: LGTM! Command name updated for consistency.The command name has been updated from "SetFlywheelVelocity" to "SetFlywheelMode" to align with the mode-based terminology used throughout the codebase.
src/main/java/frc/robot/subsystems/arm/Arm.java (3)
113-113
: LGTM! Documentation updated to reflect correct return type.The return type documentation has been updated from "ArmPosition" to "ArmMode" to match the actual return type.
120-128
: LGTM! Method renamed for consistency.The method has been renamed from
setArmPosition
tosetArmMode
and its parameter updated fromposition
tomode
to align with the mode-based terminology. The functionality remains unchanged.
190-191
: LGTM! Command name updated for consistency.The command name has been updated from "SetArmPosition" to "SetArmMode" to align with the mode-based terminology used throughout the codebase.
Summary by CodeRabbit