Skip to content

Playstation controller sendables have duplicate keys #7933

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

Open
ThadHouse opened this issue Apr 26, 2025 · 0 comments
Open

Playstation controller sendables have duplicate keys #7933

ThadHouse opened this issue Apr 26, 2025 · 0 comments
Labels
type: bug Something isn't working.

Comments

@ThadHouse
Copy link
Member

Describe the bug
The PS controllers generate multiple objects in the sendable with the same key.

 builder.AddDoubleProperty("L2", [this] { return GetL2Axis(); }, nullptr);
 builder.AddDoubleProperty("R2", [this] { return GetR2Axis(); }, nullptr);
 builder.AddBooleanProperty("L2", [this] { return GetL2Button(); }, nullptr);
 builder.AddBooleanProperty("R2", [this] { return GetR2Button(); }, nullptr);

This results in lots of NT type changes, and also in epilogue a bunch of logspam.

[EPILOGUE] An error occurred while logging an instance of frc.robot.RobotContainer: class edu.wpi.first.networktables.DoubleEntryImpl cannot be cast to class edu.wpi.first.networktables.BooleanPublisher (edu.wpi.first.networktables.DoubleEntryImpl and edu.wpi.first.networktables.BooleanPublisher are in unnamed module of loader 'app')
@ThadHouse ThadHouse added the type: bug Something isn't working. label Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

1 participant