Skip to content

made baby mode for outreach#261

Draft
Roxie222 wants to merge 7 commits into
mainfrom
slowMode
Draft

made baby mode for outreach#261
Roxie222 wants to merge 7 commits into
mainfrom
slowMode

Conversation

@Roxie222

Copy link
Copy Markdown
Contributor

No description provided.

@Roxie222 Roxie222 changed the title created slowMode made baby mode for outreach May 29, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request introduces a new slowMode utility class to scale down robot drive inputs (X, Y, and rotation) based on a NetworkTable entry. The reviewer feedback suggests renaming the class to SlowMode to follow PascalCase conventions, marking fields as final, and extracting magic numbers to constants. Additionally, the reviewer recommends returning a boolean directly instead of a BooleanSupplier lambda to prevent garbage collection overhead in the periodic loop, and inlining the slow factor scaling to avoid shadowing class-level fields with local variables.

Comment thread src/main/java/frc/robot/util/slowMode.java Outdated
Comment thread src/main/java/frc/robot/Controls.java Outdated
Comment thread src/main/java/frc/robot/Controls.java Outdated
Comment thread src/main/java/frc/robot/Controls.java Outdated
Comment thread src/main/java/frc/robot/Controls.java Outdated
Comment thread src/main/java/frc/robot/Controls.java Outdated
koolpoolo and others added 6 commits June 2, 2026 09:41
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
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.

2 participants