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

Limelight Disconnect Crash Workaround #49

Closed
wants to merge 13 commits into from
Closed

Conversation

Lithiuman
Copy link
Contributor

Summary of changes

Added try/catches to prevent code crashing on limelight disconnect, and instead setting an alert to true.

How were these changes tested?

They have not been tested.

Name of contributor (if using team account)

N/A

Issue these changes are linked to, if applicable

Closes #48

After you submit this PR, ask @j0n5m1th or @kenschenke to review it

@Lithiuman Lithiuman marked this pull request as draft March 1, 2023 03:35
# Conflicts:
#	src/main/java/frc/robot/RobotContainer.java
#	src/main/java/frc/robot/operator_interface/OperatorInterface.java
#	src/main/java/frc/robot/operator_interface/SingleHandheldOI.java
#	src/main/java/frc/robot/subsystems/arm/ArmIO.java
#	src/main/java/frc/robot/subsystems/arm/ArmIOTalonFX.java
#	src/main/java/frc/robot/subsystems/vision/Vision.java
#	src/main/java/frc/robot/subsystems/vision/VisionIO.java
#	src/main/java/frc/robot/subsystems/vision/VisionIOLimelight.java
#	src/main/java/frc/robot/subsystems/vision/VisionIOLimelightBase.java
@j0n5m1th
Copy link
Contributor

j0n5m1th commented Mar 1, 2023

Thanks for jumping on this so fast.
We'll test these changes on the robot by end of Thursday evening.

@j0n5m1th
Copy link
Contributor

j0n5m1th commented Mar 2, 2023

I think we're going to want to use the alliance-specific bot pose depending on the current alliance provided by the DriverStation.
Let's make sure to cache this value once we've gotten a good value for it so we don't have to re-call the DS every loop.

@Lithiuman
Copy link
Contributor Author

Lithiuman commented Mar 3, 2023

Apologies, I was not available. I don't think I quite understand; do you mean taking what alliance our robot is on from DS, caching it, and setting the NetworkTables subscriber to either botpose_wpiblue/wpired respectively?

And should I rename this PR to something more generalized about Limelights?

@j0n5m1th
Copy link
Contributor

@Lithiuman How are we feeling about this PR? Should we get this merged in before Heartland?

@j0n5m1th j0n5m1th closed this Nov 16, 2023
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.

VisionIOLimelight crashes when a Limelight is not found
2 participants