-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: dev
Are you sure you want to change the base?
Conversation
# Conflicts: # src/main/kotlin/frc/robot/RobotContainer.kt
Qodana Community for JVM250 new problems were found
☁️ View the detailed Qodana report Contact Qodana teamContact us at [email protected]
|
if (inputs.appliedVoltage < Units.Volts.zero()) { | ||
sensorDistance.set( | ||
DEFAULT_SENSOR_SIMULATION_DISTANCE.`in`(Units.Centimeters) | ||
) | ||
} |
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.
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).
if (voltage < Units.Volts.zero()) { | ||
intakeSimulation.startIntake() | ||
} else { | ||
} else if (voltage > Units.Volts.zero()) { | ||
intakeSimulation.stopIntake() |
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.
Use triggers here, too.
Co-authored-by: Dan Katzuv <[email protected]>
…' into feature/game-piece-visualization # Conflicts: # src/main/kotlin/frc/robot/subsystems/Visualizer.kt
No description provided.