6391-Ursuline-Bearbotics / BearSwerve

Swerve control, simulation, and trajectory generation / following. Everything you need for swerve.
Other
13 stars 4 forks source link

2023 VSCode - Exception in SwerveModuleFactory - line 57 #4

Open AfterShocks6194 opened 1 year ago

AfterShocks6194 commented 1 year ago

We've updated our VSCode to the new version for 2023. When importing a previously working code, we have a new error:

Exception has occurred: java.lang.NoSuchMethodError "java.lang.NoSuchMethodError: 'edu.wpi.first.networktables.NetworkTableEntry edu.wpi.first.wpilibj.shuffleboard.SimpleWidget.getEntry()'"

This occurs on line 57 of the SwerveModuleFactory: this.driveVoltageCmdEntry = tab.add(namePrefix + "Wheel Voltage Cmd V", 0).getEntry();

Any ideas?

bdaroz commented 1 year ago

There are a number of breaking changes in WPILib - this being a minor one, but the pose estimation now uses the module odometery as opposed to velocities, which is a significant change.

mjbergman92 commented 1 year ago

i have forked it and created my own version and i have it building now, but having issues. HOC-Team-3534

I do not envy your attempt to fix this library with the breaking changes from WPILib