Skip to content
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

Add Game Piece Visualization via Maple Sim #169

Open
wants to merge 17 commits into
base: dev
Choose a base branch
from

Conversation

rakrakon
Copy link
Contributor

@rakrakon rakrakon commented Feb 9, 2025

No description provided.

@rakrakon rakrakon requested review from katzuv and Emma03L February 9, 2025 18:27
Copy link

github-actions bot commented Feb 9, 2025

Qodana Community for JVM

250 new problems were found

Inspection name Severity Problems
Unused symbol 🔶 Warning 136
Unnecessary modifier 🔶 Warning 22
Constant conditions 🔶 Warning 6
Field can be local 🔶 Warning 5
Unnecessary conversion to 'String' 🔶 Warning 5
Unused receiver parameter 🔶 Warning 4
Declaration has problems in Javadoc references 🔶 Warning 3
Unresolved reference in KDoc 🔶 Warning 3
Field may be 'final' 🔶 Warning 2
Busy wait 🔶 Warning 1
Infinite loop statement 🔶 Warning 1
Main function should return 'Unit' 🔶 Warning 1
Mismatched read and write of array 🔶 Warning 1
Redundant nullable return type 🔶 Warning 1
'size() == 0' can be replaced with 'isEmpty()' 🔶 Warning 1
Call to 'printStackTrace()' 🔶 Warning 1
Unused import 🔶 Warning 1
Class member can have 'private' visibility ◽️ Notice 24
Lambda argument inside parentheses ◽️ Notice 13
Constant values ◽️ Notice 12
Private property naming convention ◽️ Notice 3
Might be 'const' ◽️ Notice 2
Commented out code ◽️ Notice 1
Method can be extracted ◽️ Notice 1

☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

src/main/kotlin/frc/robot/RobotContainer.kt Outdated Show resolved Hide resolved
src/main/kotlin/frc/robot/subsystems/Visualizer.kt Outdated Show resolved Hide resolved
src/main/kotlin/frc/robot/subsystems/gripper/Gripper.kt Outdated Show resolved Hide resolved
Comment on lines +39 to +43
if (inputs.appliedVoltage < Units.Volts.zero()) {
sensorDistance.set(
DEFAULT_SENSOR_SIMULATION_DISTANCE.`in`(Units.Centimeters)
)
}
Copy link
Member

Choose a reason for hiding this comment

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

This code is not obvious. Is that just making the sensor return true once the rollers rotate?
It's better to have a trigger that'll handle it. Also, add a small debounce (the coral isn't intake'd instantly).

Comment on lines +63 to 66
if (voltage < Units.Volts.zero()) {
intakeSimulation.startIntake()
} else {
} else if (voltage > Units.Volts.zero()) {
intakeSimulation.stopIntake()
Copy link
Member

Choose a reason for hiding this comment

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

Use triggers here, too.

rakrakon and others added 4 commits February 9, 2025 21:33
…' into feature/game-piece-visualization

# Conflicts:
#	src/main/kotlin/frc/robot/subsystems/Visualizer.kt
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